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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
In private inheritance, all the non-private superclass attributes become private attributes of the subclass.
- 2.
Since Java does not support multiple inheritance in this form, this code does not conform to Java syntax.
- 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
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
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
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)
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)
S.W. Ambler, Building Object Applications that Work (Cambridge University Press, Cambridge, 1998)
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
Author information
Authors and Affiliations
Corresponding author
Rights 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)