explain difference between inheritance and encapsulation using suitable examples
Answers
Answered by
0
Explanation:
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.
Answered by
7
Answer:
i attached a photo see
plz mark me as brainliest
Attachments:
Similar questions