Question d’entretien chez Antra

Interface vs abstract class , what is encapsulation

Réponse à la question d'entretien

Utilisateur anonyme

28 août 2019

encapsulation: Everything is an abstraction. Encapsulation is the process of hiding information details and protecting data and behavior of an object from misuse by other objects. In Java, encapsulation is done using access modifiers (public, protected, private) with classes, interfaces, setters, getters.