Question: how abstraction and encapsulation complementary?
Answer: The abstraction technique aims to separate the implementation details of a class from its behavior. Abstraction and encapsulation are complementary concepts. On the one hand, abstraction focuses on the behavior of an object. On the other hand, encapsulation focuses on the implementation of an object's behavior.