Abstract
By the end of this chapter students should be able to:
-
explain the term inheritance;
-
design inheritance structures using UML notation;
-
implement inheritance relationships in Java;
-
distinguish between method overriding and method overloading;
-
explain the term type cast and implement this in Java;
-
explain the use of the abstract modifier when applied to classes and methods;
-
explain the use of the final modifier, when applied to classes and methods;
-
describe the way in which all Java classes are derived from the Object class.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsNotes
- 1.
You would also have to place a backslash in front of a double quote (\”), a single quote (\’) or another backslash (\\) if you wanted any of these to be output as part of a string. This is because the compiler would interpret these as having a special meaning such as terminating the string.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2019 Springer Nature Switzerland AG
About this chapter
Cite this chapter
Charatan, Q., Kans, A. (2019). Inheritance. In: Java in Two Semesters. Texts in Computer Science. Springer, Cham. https://doi.org/10.1007/978-3-319-99420-8_9
Download citation
DOI: https://doi.org/10.1007/978-3-319-99420-8_9
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-99419-2
Online ISBN: 978-3-319-99420-8
eBook Packages: Computer ScienceComputer Science (R0)