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

Write a program to sort the number with different sorts in one program ??

2140


What are the 3 pillars of oop?

902


Why is oop useful?

844


What is abstraction in oops?

812


write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

1958


What are the three main types of variables?

858


What is an interface in oop?

804


How do you achieve polymorphism?

856


What is a class in oop?

801


What is the advantage of oop over procedural language?

865


When not to use object oriented programming?

806


Please send ford technologies placement paper 2 my mail id

1876


What is overloading in oops?

875


What is abstract class in oop?

786


Why oops is important?

815