Pergunta de entrevista da empresa SAP

Difference between Abstraction and Encapsulation ?

Resposta da entrevista

Sigiloso

8 de set. de 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