Inheritance

From JholJhapata
Revision as of 17:52, 2 September 2019 by Admin (talk | contribs) (Created page with "Inheritance is a concept in which you define parent classes and child classes.<br> The child classes inherit methods and properties of the parent class, but at the same time,...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Inheritance is a concept in which you define parent classes and child classes.

The child classes inherit methods and properties of the parent class, but at the same time, they can also modify the behavior of the methods if required. The child class can also define methods of its own if required.