Skip to main content

Exploring Inheritance

  • Chapter
  • First Online:
Object-Oriented Analysis, Design and Implementation

Part of the book series: Undergraduate Topics in Computer Science ((UTICS))

  • 161k Accesses

Abstract

In this chapter we look more deeply at the topic of inheritance, the basic concepts of which were covered in Chap. 3. Inheritance can be done in two ways: by subclassing existing classes and by implementing interfaces. The major goal of inheritance is reuse, but the two approaches achieve this goal in different ways.

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 54.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 69.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

Notes

  1. 1.

    In private inheritance, all the non-private superclass attributes become private attributes of the subclass.

  2. 2.

    Since Java does not support multiple inheritance in this form, this code does not conform to Java syntax.

  3. 3.

    We would like to remind the reader that the Java-like code we have given below is not valid in the Java language.

References

  1. B.M.P. Clarke, P. Gibson, Using a taxonomy tool to identify changes in object-oriented software, in 7th European Conference on Software Maintenance and Reengineering, Benevento, Italy, 26–28 March 2003

    Google Scholar 

  2. X. Girod, Conception par objects—MECANO: une methode et un environnement de construction d‘application par objects. Ph.D. thesis, University of Joseph Fourier Grenoble I, Grenoble, June 1991

    Google Scholar 

  3. A. Formica, H.D. Gröger, M. Missikoff, Object-oriented database schema analysis and inheritance processing: a graph-theoretic approach. Data Knowl. Eng. 24(2), 157–181 (1997)

    Article  MATH  Google Scholar 

  4. A. Formica, H.D. Gröger, M. Missikoff, An efficient method for checking objectoriented database schema correctness. ACM Trans. Database Syst. 23(3), 334–369 (1998)

    Article  Google Scholar 

  5. S.W. Ambler, Building Object Applications that Work (Cambridge University Press, Cambridge, 1998)

    MATH  Google Scholar 

  6. B.H. Liskov, J.M. Wing, Behavioural subtyping using invariants and constraints, in Formal Methods for Distributed Processing: A Survey of Object-Oriented Approaches, ed. by H. Brown, J. Derick (Cambridge University press, Cambridge, 2001), pp. 254–280

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Brahma Dathan .

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Universities Press (India) Private Ltd.

About this chapter

Cite this chapter

Dathan, B., Ramnath, S. (2015). Exploring Inheritance. In: Object-Oriented Analysis, Design and Implementation. Undergraduate Topics in Computer Science. Springer, Cham. https://doi.org/10.1007/978-3-319-24280-4_9

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-24280-4_9

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-24278-1

  • Online ISBN: 978-3-319-24280-4

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics