What is polymorphis…
 
Notifications
Clear all

What is polymorphism?

3 Posts
3 Users
0 Likes
159 Views
0
Topic starter

Explain Briefly.

3 Answers
0

Polymorphism is a concept in object-oriented programming that allows objects of different classes to be treated as objects of a common superclass. It enables flexibility in method implementation and fosters code reusability.

0

Polymorphism means “many forms“, and it occurs when we have many classes that are related to each other by inheritance. Like we specified in the previous chapter; Inheritance lets us inherit attributes and methods from another class. Polymorphism uses those methods to perform different tasks.

0

Polymorphism means “many forms“, and it occurs when we have many classes that are related to each other by inheritance. Like we specified in the previous chapter; Inheritance lets us inherit attributes and methods from another class. Polymorphism uses those methods to perform different tasks.

Share: