Question d’entretien chez Aditya Birla Group

what is inheritance and encapsulation

Réponse à la question d'entretien

Utilisateur anonyme

21 août 2023

There are three more important concept, inheritance, which makes the OOP code more modular, easier to reuse and build a relationship between classes. Encapsulation can hide some of the private details of a class from other objects, while polymorphism can allow us to use a common operation in different way