What is polymorphism ? Explain with examples
Answer Posted / khushpreet kaur.
Polymorphism is taken from the greek word which means "many
forms"...
So polymorphism means "to carry out operations of
different processing steps by function having same
messages".
when a base class member function can be overridden by
defining a derived class member function with same name as
that of the base class member function,then such type of
concept is called "Polymorphism".(one interface multiple
methods)
polymorphism is of two types- compile time(early or static
binding) and run time(dynamic or late binding)..
in comlite time is of two types-function overloading and
operator overloading.
in run time is of two types-virtual function and pure
virtual function..
| Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
What are the benefits of interface?
Which is better struts or spring?
What is abstraction in oops?
Prepare me a program for the animation of train
What are properties in oop?
What does I oop mean?
How do you achieve polymorphism?
What is encapsulation in simple terms?
Please send ford technologies placement paper 2 my mail id
What are the 4 pillars of oop?
What are the advantages of polymorphism?
Can enum be null?
What are the types of abstraction?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
Why is polymorphism used?