Click here to Skip to main content
15,898,010 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When child class inherits from a parent class and it gains all the methods properties of the parent class.
To resolve this problem a class member from a parent class, the parent class has to be declare as virtual while the child class should declare as override..
this whole process is called polymorphism

IS the complete defination for Polymorphism....?
Posted
Updated 4-Sep-11 0:56am
v2

No this is not the definition of Polymorphism.
This is Inheritance.

Polymorphism literally mean "many forms".
Polymorphism is the ability to create an object or a method that can have more than one form.

The idea behind polymorphism is to all the user to choose what method they want to use at runtime than at design time.
Method overloading and overriding are not really examples of Polymorphism by themselves.
 
Share this answer
 
v2
Comments
MUHAMMAD FAROOQ1991 4-Sep-11 10:37am    
Can you give example illusrated by diagram
Here's one quite nice explanation with examples: Polymorphism (C# Programming Guide)[^]
 
Share this answer
 
Comments
MUHAMMAD FAROOQ1991 4-Sep-11 10:36am    
Can you give example illusrated by diagram
?
Have a look at below CodeProject Article link.

This article will give you details arould Object Oriented Programming Concepts.
What is Polymorphisms?
 
Share this answer
 
Comments
MUHAMMAD FAROOQ1991 4-Sep-11 10:37am    
Can you give example illusrated by diagram

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900