Results 1 to 5 of 5

Thread: Runtime polymorphism Vs Compile time polymorphism

  1. #1
    Join Date
    Dec 2009
    Posts
    32

    Runtime polymorphism Vs Compile time polymorphism

    Hello Friends,

    I want to discuss my confusion with you and which is related to 'Polymorphism'. As per my knowledge the 'Polymorphism' divided into run-time polymorphism and compile time polymorphism. But thing is that I am not able to understand the difference in between these two type of polymorphism. I wonder if anyone provides me some differences between Runtime polymorphism and Compile time polymorphism.

  2. #2
    Join Date
    May 2008
    Posts
    2,389

    Re: Runtime polymorphism Vs Compile time polymorphism

    Runtime polymorphism is achieved only when the class that executes the class method at runtime. The polymorphism is the ability to take several forms. In the case of polymorphism ad-hoc applied to the legacy he can be able to write in Java Animal a = new Dog (). In other words, to see a specific object of a generic point of view.The polymorphism is the mechanism in which the same message can be interpreted in different ways function of the object that receives this message.

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    Re: Runtime polymorphism Vs Compile time polymorphism

    In Compile time polymorphism the function call is resolved only at compile time.The term polymorphism means that the polymorphism in behavior, that is to say, can trigger the different methods in response to a single message. Each derived class inherits the specification of methods of its base classes, but also the ability to locally modify the behavior of these methods to better take into account the peculiarities of each. This is the principle of redefining methods.

  4. #4
    Join Date
    Apr 2008
    Posts
    2,005

    Re: Runtime polymorphism Vs Compile time polymorphism

    The polymorphism is a dynamic linking. Thus the call to a method defined in the super class and the subclass will not be fixed at compile time. Runtime polymorphism occurs only in the inheritance of one class by redefinition of the method with a method. Everything we do is a copy of the members of a derived class to its base class. polymorphism is the ability of an entity to have multiple forms. In this computer term applies also to objects and methods according to their degree of adaptability.

  5. #5
    Join Date
    Oct 2005
    Posts
    2,393

    Re: Runtime polymorphism Vs Compile time polymorphism

    If we implement the polymorphism in our program, the internal structure becomes more complex . Also, the access method requires two indirections, which provided the extension of time to answer.The compile time polymorphism is related while the compilation of the program. The polymorphism means that the polymorphism in behavior, that is to say, can trigger the different methods in response to a single message. Each derived class inherits the specification of methods of its base classes, but also the ability to locally modify the behavior of these methods to better take into account the peculiarities of each.

Similar Threads

  1. Difference between Compile time and runtime in C language
    By Otta-koothan in forum Software Development
    Replies: 6
    Last Post: 22-08-2011, 01:20 PM
  2. What does polymorphism mean in OOP?
    By Khan Baba in forum Software Development
    Replies: 5
    Last Post: 06-02-2010, 02:14 PM
  3. Polymorphism VS Inheritance
    By Taylor D in forum Software Development
    Replies: 5
    Last Post: 22-01-2010, 10:12 AM
  4. Polymorphism in SQL database
    By cobra2008 in forum Software Development
    Replies: 2
    Last Post: 04-04-2009, 09:52 PM
  5. Run - Time polymorphism with Overriden method in JAVA
    By NAYASA in forum Software Development
    Replies: 1
    Last Post: 04-12-2008, 07:11 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,718,027,703.18434 seconds with 16 queries