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. Thus, it is true that while implementing encapsulation, abstraction is also implemented.