Top News

How is Abstraction different from Encapsulation?

 

Abstraction happens at class level design. It results in hiding the

implementation details. Encapsulation is also known as

“Information Hiding”. An example of encapsulation is marking the

member variables private and providing getter and setter for these

member variables.

Post a Comment

Previous Post Next Post