what is polymorphism?

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


Please Help Members By Posting Answers For Below Questions

What is a list c++?

579


How did c++ start?

616


Why namespace is used in c++?

607


What is the use of function pointer?

579


What relational operators if statements in c++?

646






What is a character in c++?

569


What is the benefit of encapsulation?

596


write a porgram in c++ that reads an integer and print the biggest digit in the number

1773


Is c++ the hardest programming language?

644


What is one dimensional array in c++?

584


What does catch(…) mean?

615


Is c++ a good beginners programming language?

585


How is objective c different from c++?

796


What character terminates all character array strings a) b) . c) END

676


Explain how the virtual base class is different from the conventional base classes of the opps.

695