Skip to main content

Inheritance

  • Chapter
  • First Online:
Interactive Object Oriented Programming in Java
  • 2583 Accesses

Abstract

The main objective of inheritance is to promote reusability and eliminate redundancy (of code). Here a child class obtains the features of its parent class. By parent class we mean the class which is at the higher level in the class hierarchy compared to another class (which is termed as a child class)

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 19.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Vaskaran Sarcar

About this chapter

Cite this chapter

Sarcar, V. (2016). Inheritance. In: Interactive Object Oriented Programming in Java. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2544-8_3

Download citation

Publish with us

Policies and ethics