answersLogoWhite

0

As an example, given a base class Shape, polymorphism enables the programmer to define different area methods for any number of derived classes, such as Circles, Rectangles and Triangles. No matter what shape an object is, applying the area method to it will return the correct results.

This may also be referred to as an "is-a" relationship.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What is Difference between dynamic polymorphism and static polymorphism with example?

Static polymorphism is used the concept of early binding or we can say compile time binding where as dynamic polymorphism used the concept of late binding or run time binding.


What are the basic concept of object oriented programming language?

Inheritance Encapsulation Polymorphism Abstraction


What is the scientific definition of term?

It means a word or phrase used to describe a thing or to express a concept, esp in a particular kind of language or branch of study


Where did the phrase I love you originate?

The phrase "I love you" is believed to have originated from the ancient Greeks. The concept of love has been explored in various forms of literature and art throughout history, shaping the way we express our feelings for others.


Polymorphism in coelentrates?

polymorphism in coelentrates


What is a mathematical phrase?

Mathematical phrase is a number phrase which does not express a complete thought.


What is the classification of polymorphic?

Polymorphic can refer to different things depending on the context. In computer science, polymorphism is a programming concept that allows objects to be treated as instances of their parent class. In biology, polymorphism refers to the existence of multiple forms of a gene within a population.


What is Polymorphism and inheritance explain with example?

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


Does java support oops concept?

Yes. Java is an Object Oriented Programming Language and it supports the OOPS concepts like Inheritance, Polymorphism etc


Does not express a complate thought?

A phrase that doesn't express a complete thought is called a fragment.


What is the math concept used to express quantity?

Number!


Is a phrase a group of words the express an idea?

as my English teacher says " a phrase is a group of words that express a complete thought or idea" but yeah you basically had it right.