Why we use Abstraction ? What is Inheritance?
Anónimo
abstraction is used to hiding unnecessary details from user and show only necessary details for ex- A user use remote and control the televisions but they don't know how it work internally. In inheritance Drive class inherit all the properties from base class. for ex- Child inherits properties from his parents.