Completion Complete each
statement.
|
|
|
1.
|
The mechanism that enables one class to inherit both the behavior and the
attributes of another class is called ____________________.
|
|
|
2.
|
When you create a class by making it inherit from another class, you are
provided with data fields and ____________________ automatically.
|
|
|
3.
|
A(n) ____________________ class inherits from a base class.
|
|
|
4.
|
You use the keyword ____________________ to achieve inheritance within the Java
programming language.
|
|
|
5.
|
Each subclass method ____________________ any method in the parent class that
has the same name and argument list.
|
|
|
6.
|
The ____________________ statement must be the first statement in the subclass
constructor.
|
|
|
7.
|
The keyword ____________________ always refers to the superclass of the class in
which you use it.
|
|
|
8.
|
Data fields in a class should always be ____________________.
|
|
|
9.
|
Most of the methods in Java are ____________________.
|
|
|
10.
|
The concept of keeping data private is known as information
____________________.
|
|
|
11.
|
____________________ methods are also called class methods and they have no
objects associated with them.
|
|
|
12.
|
You call a static method using a(n) ____________________ name, not an object
name.
|
|
|
13.
|
There are four types of methods that you cannot override in a subclass: private,
____________________, final, and methods within final classes.
|
|
|
14.
|
A subclass inherits variables and ____________________ from its
superclass.
|
|
|
15.
|
The child class ____________________ variables and methods from the parent
class.
|
|
|
16.
|
A parent class can also be called a(n) ____________________ class.
|
|
|
17.
|
The Java keyword used when one class inherits from another is
____________________.
|
|
|
18.
|
A subclass can hide a static method in the superclass by declaring a static
method with an identical ____________________.
|