explain difference between inheritance and encapsulation using suitable examples
Answers
Answered by
0
Answer:
inheritance means aquared characteristics
Answered by
1
Answer:
Inheritance is an object oriented concept which creates a parent-child relationship. ... Encapsulation is an object oriented concept which is used to hide the internal details of a class, for example, HashMap encapsulate how it store elements and calculate hash values.
Similar questions