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
Can we override main method?
write a C++ program for booking using constructor and destructor.
What is encapsulation in oops?
What is purpose of inheritance?
Plese get me a perfect C++ program for railway/airway reservation with all details.
What is class and object with example?
What is the real time example of inheritance?
explain sub-type and sub class? atleast u have differ it into 4 points?
What is polymorphism in oop example?
What is polymorphism in oops?
What is the difference between encapsulation and polymorphism?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
Whats oop mean?
Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.
what is graphics