Skip to main content

Abstract

In Chapter 5, we discussed generalization/specialization as an abstraction mechanism for modeling classes and their hierarchical relationships with one another. We also introduced superclasses as generalized classes of subclasses. In this chapter, we will discuss inheritance as a mechanism for propagating properties (attributes and methods) of superclasses to subclasses. The properties then form part of the subclasses’ definition. From an implementation standpoint, inheritance encourages software reuse. The impact of inheritance on software development will also be discussed.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2008 Springer-Verlag London Limited

About this chapter

Cite this chapter

Poo, D., Kiong, D., Ashok, S. (2008). Inheritance. In: Object-Oriented Programming and Java. Springer, London. https://doi.org/10.1007/978-1-84628-963-7_6

Download citation

  • DOI: https://doi.org/10.1007/978-1-84628-963-7_6

  • Publisher Name: Springer, London

  • Print ISBN: 978-1-84628-962-0

  • Online ISBN: 978-1-84628-963-7

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics