Answer Posted / kananatha kowsik.r
Polymorphism is a greek word.'Poly' means many.'Morphism'
means programs.'Polymorphism' many programs.That means by
calling many forms or many programs using one interface.By
using polymorphism we can achieve overloading and overriding.
Types of polymorphism.
1.Compile time polymorphism or late bind polymorphism
2.Run time polymorphism or early bind polymorphism or
dynamic polymorphism.
1.Compile time polymorphism:
The polymorphism which is created at compile time or
late bind is called compile time polymorphism.
Example: Function overloading, Operator overloading.
2.Runt time polymorphism:
The polymorphism which is created at run time or late
bind or dynamically is called run time polymorphism.
Example: Abstract class, Virtual function.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Can I have a reference as a data member of a class? If yes, then how do I initialise it?
What character terminates all character array strings a) b) . c) END
What is the cout in c++?
Define vptr.
What is lambda expression c++?
What number of digits that can be accuratly stored in a float (based on the IEEE Standard 754)? a) 6 b) 38 c) An unlimited number
Why is c++ still popular?
Specify different types of decision control statements?
What are all predefined data types in c++?
Does c++ cost money?
When is the destructor called?
What is the advantage of c++ over c?
What does it mean to declare a member function as virtual?
When does the c++ compiler create temporary variables?
Why should we use null or zero in a program?