Name TBD (Quiz 2)
T/F: Inheritance involves a subclass, which is the general class, and a superclass, which is the specialized class.
False
T/F: Because every class directly or indirectly inherits from the Object class, every class inherits the Object class's members.
True
T/F: Instance methods do not have the key word static in their headers.
True
T/F: It is not possible for a superclass to call a subclass's method.
True
The ________ key word is used to call a superclass constructor explicitly.
super
When an object is passed as an argument to a method, what is passed into the method's parameter variable?
the object's memory address
Two or more methods in a class may have the same name as long as ________.
they have different parameter lists
________ refers to combining data and code into a single object.
Encapsulation
What does the following statement do? double[] array1 = new double[10];
It will allow valid subscripts in the range of 0 through 9, It declares array1 to be a reference to an array of double values, and It creates an instance of an array of ten double values
Which key word indicates that a class inherits from another class?
extends
Overloading means that multiple methods in the same class ________.
have the same name but different parameter lists
A subclass can directly access ________.
only public and protected members of the superclass
If two methods have the same name but different signatures they are ________.
overloaded