answersLogoWhite

0

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

11y ago

What else can I help you with?

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 characteristics of OOPS?

Data Encapsulation, Abstraction, Inheritance, Polymorphism


What are the benefits and application of OOP?

Encapsulation, inheritance, polymorphism and abstraction.


Examples for oops concepts?

polymorphism,inheritance,encapsulation,objects,classes


How is run time polymorphism accomplished?

Through inheritance and virtual functions.


What are the basic concept of object oriented programming language?

Inheritance Encapsulation Polymorphism Abstraction


What are the various elements of Object oriented programming?

Encapsulation, data hiding, inheritance and polymorphism.


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.