Deliveroo interview question

What is inheritance and give an example

Interview Answer

Anonymous

13 Oct 2022

Inheritance is when a class inherits all the attributes and methods of another class. The inheriting class is able to extend the inherited attributes and methods. Example is letting a Car Model class inherits from a Car class