SAP interview question

Difference between Abstraction and Encapsulation ?

Interview Answer

Anonymous

8 Sept 2016

Abstraction means showing only the relevant info to user and hiding unrelevant info. where as Encapsulation is one of the technique to achieve the Abstraction , In Encapsulation we encapsulate the Function and properties or State and Behavior, it is achieved using Object and an Object is an Instance of a Class.

1