Computer Science

Give two differences between Polymorphism and Inheritance.

Objects & Classes

3 Likes

Answer

PolymorphismInheritance
Polymorphism provides the means to perform a single action in multiple different ways.Inheritance enables new classes to receive or inherit the properties and methods of existing classes.
Polymorphism is implemented through Method Overloading and Method Overriding in Java.A class can inherit from another class using the 'extends' keyword in Java.

Answered By

3 Likes


Related Questions