HCLTech Interview Question

Explain how inheritance works in java.

Interview Answer

Anonymous

Mar 29, 2021

When a subclass acquires the properties and behaviour of superclass is called as inheritance in java.Abstract Class doesn't support Multiple Inheritance, To acheive it we have to use interface. A class implements multiple interfaces and interface extends multiple interfaces it called multiple inheritance.