Polymorphism with an example?

Answer Posted / rajdeep gupta

to call the overloaded function via object is known as
polymorphism.There are two types of polymorphism
1-Dynamic polymorphism
2-static polymorphism

static polymorphism(early binding)

there in only one class is sufficient to call the overloaded
function.it is predefine that which function want to be call.
that means the linking between function call and object is
resolved at compile time is known as static polymorphism.

dynamic polymorphism(late binding)
class model should be based on inheritance model.virtual
function is used for it.
that means the linking between function call and object is
resolved at run time is known as dynamic polymorphism.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a constructor and a destructor?

600


What is abstraction oop?

612


What are main features of oop?

621


Why is static class not inherited?

589


What is stream in oop?

830






what is the sylabus for priliminaries?

1671


Why is abstraction needed?

556


How does polymorphism work?

625


How to improve object oriented design skills?

558


write string class as your own class in java without using any built-in function

1965


What is inheritance in simple words?

613


What is object and class in oops?

571


Is enum a class?

596


Get me an image implementation program.

1550


Explain the advantages of inheritance.

662