Computer Science, asked by tejaswaroopbattula, 9 months ago

explain difference between inheritance and encapsulation using suitable examples

Answers

Answered by gauravarduino
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 Puneeth555
7

Answer:

i attached a photo see

plz mark me as brainliest

Attachments:
Similar questions