Frage im Vorstellungsgespräch bei Xceedance

What is Inheritance? Explain it?

Antwort im Vorstellungsgespräch

Anonym

10. Mai 2023

Inheritance in OOP = When a class derives from another class. The child class will inherit all the public and protected properties and methods from the parent class. In addition, it can have its own properties and methods. An inherited class is defined by using the extends keyword.