answersLogoWhite

0


Best Answer

Polymorphism, is an object-oriented programming concept, which relates to the ability to create a variable, function or an object that has more than one form. This allows the object to invoke the correct instance of the variable, function or other object based upon the object type. The most common use of polymorphism in OOP occurs when a parent class reference is used to refer to a child class object.

Here are some links to examples:

C++: http://www.cplusplus.com/forum/beginner/10884/

c#: http://msdn.microsoft.com/en-us/library/ms173152.aspx

Python: http://en.wikipedia.org/wiki/Polymorphism_in_object-oriented_programming

Java: http://www.tutorialspoint.com/java/java_polymorphism.htm

User Avatar

Wiki User

10y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

Yes. Method Overloading is a form of Polymorphism

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

Yes. Overloading is a form of polymorphism

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

I think constructor overloading is the concept of polymorphism.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is Polymorphism and inheritance explain with example?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering
Related questions

Can you have inheritance without polymorphism?

Yes. Inheritance and polymorphism are two different things. Inheritance is when the attributes and methods of a class are inherited by a deriving class that creates a more specialized type. Polymorphism is when two methods exist with the same name, differing only in argument types, or in class type. The former type, argument types, is an example of ad-hoc polymorphism that does not even require a class.


What is a relationship in following a-polymorphism b-inheritance c-overloading d-none of these options?

Inheritance.


3 pillars of object oriented programming?

abstraction, inheritance, encapsulation, and polymorphism.


What are the benefits and application of OOP?

Encapsulation, inheritance, polymorphism and abstraction.


What are the characteristics of OOPS?

Data Encapsulation, Abstraction, Inheritance, Polymorphism


Examples for oops concepts?

polymorphism,inheritance,encapsulation,objects,classes


How is run time polymorphism accomplished?

Through inheritance and virtual functions.


What are the various elements of Object oriented programming?

Encapsulation, data hiding, inheritance and polymorphism.


What are the basic concept of object oriented programming language?

Inheritance Encapsulation Polymorphism Abstraction


What is oops.explain briefly the elements of oops?

if any system supports for abstraction,encapsulation,inheritance and polymorphism.


What are the features of object oriented program?

The features of object oriented programming are Abstraction, Encapsulation, Polymorphism & Inheritance


Basic concepts of OOP?

The four main pillars of all OOP languages are encapsulation, inheritance, polymorphism and abstraction.