Abstraction And Encapsulation And There Interrelation.

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

40 Views
%d bloggers like this: