Pergunta de entrevista da empresa Aditya Birla Group

what is inheritance and encapsulation

Resposta da entrevista

Sigiloso

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