What is inheritance?

Inheritance means one class can reuse and extend another class. The new class inherits properties and methods from the old one.