0
665views
Inheritance vs Polymorphism.
written 2.4 years ago by | modified 2.3 years ago by |
Differentiate between Inheritance and Polymorphism.
ADD COMMENT
EDIT
1 Answer
written 2.4 years ago by | modified 2.3 years ago by |
Differentiate between Inheritance and Polymorphism.
written 2.4 years ago by |
BASIS FOR COMPARISON | INHERITANCE | POLYMORPHISM |
---|---|---|
BASIC | Inheritance is creating a new class using the properties of the already existing class. |
Polymorphism is basically a common interface for multiple form. |
IMPLEMENTATION | It is implemented on classes. | It is basically implemented on functions/methods. |
USE | To support the concept of reusability in OOP … |