Q6. What do you mean by Abstraction and Encapsulation? How are these two terms interrelated?
Ans. Abstraction is the act of representing essential features without including the background details.
Encapsulation is the way of combining both data and the functions that operate on the data under a single unit.
Encapsulation is the way of implementing abstraction.