Abstract
The main objective of inheritance is to promote reusability and eliminate redundancy in code. It also demonstrates how a child class can obtain the features (or characteristics) of its parent class. Since a parent class is placed at a higher level in the class hierarchy, and a child class can derive from it, a child class is often referred to as a derived class or subclass. A parent class is also referred to as a super class.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2020 Vaskaran Sarcar
About this chapter
Cite this chapter
Sarcar, V. (2020). The Concept of Inheritance. In: Interactive Object-Oriented Programming in Java. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-5404-2_4
Download citation
DOI: https://doi.org/10.1007/978-1-4842-5404-2_4
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-5403-5
Online ISBN: 978-1-4842-5404-2
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)