Java Reference
In-Depth Information
Using the Java API (continued)
FIGURE 10-57b
Short Answer
1 . J a v a s u p p o r t s ________________ inheritance of interfaces, but only
________________ inheritance of classes.
2. A class that cannot be used to create an object is known as a(n)
________________ c lass.
3. A class that can be used to create an object is known as a(n) ________________
class.
4 . A ( n ) ________________ i s a n o b j e c t - o r i e n t e d d esign tool used to show the rela-
tionships among parent-child classes and to describe the inheritance rela-
tionships between classes.
5. A method that includes only a method header without the implementation
is called a(n) ________________ m e t h o d .
6. A class that contains an abstract method is a(n) ________________ c lass.
7 . ________________ and ________________ m o d e l o b j e c t r e l a t i o nships in Java.
8. Inheritance is used to model a(n) ________________ r e l a t i o nship in Java.
9. Aggregation is used to model a(n) ________________ r e l a t i o nship in Java, in
which an object is composed of other objects.
Search WWH ::




Custom Search