Answer Posted / d n gavade
There are two type of polymorphism i.e.
static(compiplation time) and
Dynamic Polymorphism(Run Time).
In case of Static,
derived class,Base class have same funcion name,the base
class function will be called.
In Case of Dynamic Polymorphism,we can use virtual keyword
in base class function and passing reference of derived
class to the base class pointer, we can call the derived
class function which is override.
| Is This Answer Correct ? | 30 Yes | 2 No |
Post New Answer View All Answers
What is encapsulation oop?
Write a program to reverse a string using recursive function?
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?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
What are functions in oop?
what's the basic's in dot net
What is the advantage of oop over procedural language?
What is object in oop?
What are the features of oop?
What are main features of oop?
What is polymorphism in oops with example?
How to hide the base class functionality in Inheritance?
What is variable example?
Get me a number puzzle game-program
Why is polymorphism used?