
10.10 Exercises,Problems,and Projects 719
EXERCISES,PROBLEMS, AND PROJECTS
■
To specify that a subclass inherits from a superclass and uses an
interface, a class header should include the implements keyword
and the name of the interface, as in the syntax that follows.
accessModifier class ClassName extends SuperclassName
implements InterfaceName
10.10 Exercises,Problems,and Projects
10.10.1 Multiple Choice Exercises
1. The extends keyword applies to
❑ a class inheriting from another class
❑ a variable
❑ a method
❑ an expression
2. A Java class can inherit from two or more classes.
❑ true
❑ false
3. In Java, multiple inheritance is implemented using the conc