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
What is c++ hiding?
Write syntax to define friend functions in C++.
Describe linked list using C++ with an example.
What is operators in c++?
What c++ is used for?
Is main a class in c++?
What is abstract class in c++?
What is data types c++?
What is the difference between while and do while loop?
Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?
How do you traverse a btree in backward in-order?
What is the error in the code below and how should it be corrected?
Do class method definitions?
What is the use of main function in c++?
What is a storage class used in c++?