Domanda di colloquio di Aditya Birla Group

what is inheritance and encapsulation

Risposta di colloquio

Anonimo

21 ago 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