Domanda di colloquio di Capgemini

Difference between Encapsulation and abstraction.

Risposta di colloquio

Anonimo

30 ott 2021

Encapsulation is the thought process of hiding sensitive information from accidental access. And abstraction is the actual implementation of hiding details and showing necessary information. Class is the way to achieve encapsulation and properties is the way to achieve abstraction.