+ 1
Benefits of Inheritance?
6 Respostas
+ 2
Code reuse.
Encapsulation.
Polymorphism.
Common (base) API, which is essentially polymorphism
+ 2
@Deep polymorphism requires inheritance, if you need to learn about polymorphism that's another question.
Encapsulation is just data hiding; the super class hides implementation as a service to the sub class.
+ 1
@Dean How Encapsulation and polymorphism is involved in Inheritance?
+ 1
@Ali What do you mean by "your program find arrangement"?
0
you don't need to rewrite the method and attribute in child class
and your program find arrangement..
0
@Deep it means your program can be a sample of nature with discipline..