Aditya Birla Group Interview Question

what is inheritance and encapsulation

Interview Answer

Anonymous

Aug 21, 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