Pergunta de entrevista da empresa Areteans

What is the difference between encapsulation and abstraction?

Resposta da entrevista

Sigiloso

26 de fev. de 2019

Encapsulation is the packing of data and functions operating on that data into a single component and restricting access to some of the object's components. Encapsulation means that the internal representation of an object is generally hidden from view outside of the object's definition. Abstraction is a mechanism which represents the essential features without including implementation details.