Java Reference
In-Depth Information
Input File
3 345
Lisa Miller 890238 Y 4
Mathematics MTH345 4 A
Physics PHY357 3 B
ComputerSci CSC478 3 B
History HIS356 3 A
Bill Wilton 798324 N 5
English ENG378 3 B
Philosophy PHL534 3 A
Chemistry CHM256 4 C
Biology BIO234 4 A
Mathematics MTH346 3 C
Dandy Goat 746333 Y 6
History HIS101 3 A
English ENG328 3 B
Mathematics MTH137 3 A
Chemistry CHM348 4 B
ComputerSci CSC201 3 B
Business BUS128 3 C
A GUI version of this program is available with the Additional Student Files at
www.cengagebrain.com.
1
0
QUICK REVIEW
1 . Inheritance and composition (aggregation) are meaningful ways to relate two
or more classes.
2 . Inheritance can be viewed as an ''is-a'' relationship.
3 . In single inheritance, the subclass is derived from only one existing class,
called the superclass.
4 . In multiple inheritance, a subclass is derived from more than one superclass.
Java does not support true multiple inheritance; that is, in Java, a class can
only extend the definition of one class.
5 . The private members of a superclass are private to the superclass. The
subclass cannot directly access them.
6 . A subclass can override the methods of a superclass, but this redefinition is
available only to the objects of the subclass.
 
 
Search WWH ::




Custom Search