CMSC 132A Lecture Notes - Lecture 9: Multiple Inheritance

59 views4 pages

Document Summary

In the preceding lessons, you have seen inheritance mentioned several times. Java language, classes can be derived from other classes, thereby inheriting fields and methods from those classes. Definitions: a class that is derived from another class is called a subclass (also a derived class , extended class , or child class ). The class from which the subclass is derived is called a superclass (also a base class or a parent class ). Excepting object, which has no superclass, every class has one and only one direct superclass (single inheritance). In the absence of any other explicit superclass, every class is implicitly a subclass of object. Classes can be derived from classes that are derived from classes that are derived from classes, and so on, and ultimately derived from the topmost class, object. Such a class is said to be descended from all the classes in the inheritance chain stretching back to.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents