June 2017
Beginner
1296 pages
69h 23m
English
Inheritance (p. 374) reduces program-development time.
The direct superclass (p. 374) of a subclass is the one from which the subclass inherits. An indirect superclass (p. 374) of a subclass is two or more levels up the class hierarchy from that subclass.
In single inheritance (p. 374), a class is derived from one superclass. In multiple inheritance, a class is derived from more than one direct superclass. Java does not support multiple inheritance.
A subclass is more specific than its superclass and represents a smaller group of objects (p. 374).
Every object of a subclass is also an object of that class’s superclass. However, a superclass object is not an object of its class’s subclasses.
An is-a relationship ...
Read now
Unlock full access