1.

What Is The Differences Between Abstraction And Encapsulation?

Answer»

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. Encapsulation is usually ACHIEVED by hiding information about the INTERNAL state of an object and thus, can be seen as a STRATEGY used in ORDER to provide abstraction.

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. Encapsulation is usually achieved by hiding information about the internal state of an object and thus, can be seen as a strategy used in order to provide abstraction.



Discussion

No Comment Found