Embed presentation
Download to read offline






Inheritance allows a derived class to inherit properties and methods from a parent or super class, so any changes made to the super class are automatically applied to the derived class. A derived class can have all the properties and methods of the super class as well as its own unique properties and methods. Inheritance is useful because it reduces code duplication and allows classes to share and extend behavior.





