Sollicitatievraag bij HCLTech

Explain how inheritance works in java.

Antwoord op sollicitatievraag

Anoniem

29 mrt 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.