Nokia interview question

What is meant by Inheritance?

Interview Answer

Anonymous

Jun 30, 2022

In object-oriented programming, inheritance is the mechanism by which an object or class (referred to as a child) is created using the definition of another object or class (referred to as a parent). Inheritance not only helps to keep the implementation simpler but also helps to facilitate code reuse.