3680 exam 2
What is Inheritance
Allows a new class to extend an existing class
Superclass
general class
This operator can be used to determine whether a reference variable references an object of a particular class.
instanceof
When a class implements an interface, an inheritance relationship known as _______ inheritance is established.
interface
You can use the ______ operator to define an anonymous inner class.
new
If two methods have the same name but different signatures, they are ____________. This is true where the methods are in the same class or where one method is in the superclass and the other method is in the subclass.
overloaded
Abstract methods must be...
overridden
a method cannot _________ another method in the same class.
override
Subclass
specialized class
If a super statement that calls a superclass constructor appears in a ________ constructor, it must be the first statement.
subclass
You can write a super statement that calls a superclass constructor, but only in the ________ constructor.
subclass
If a subclass constructor does not explicitly call a superclass constructor, Java will automatically call ________ just before the code in the subclass's constructor executes.
super()
A ____ constructor always executes before the subclass constructor.
superclass
If a method in a subclass has the same signature as a method in the superclass, the subclass method overrides the ______ method.
superclass
If a superclass does not have a default constructor and does not have a no-arg constructor, then a class that inherits from it must call one of the constructors that the ______ does have.
superclass
You cannot call the _________ constructor from any other method
superclass
All classes directly or indirectly inherit from this class.
Object
____________, can only take place in an inheritance relationship.
Overriding
Abstract classes cannot...
be instantiated
With this type of binding, the Java Virtual Machine determines at runtime which method to call, depending on the type of the object that a variable references.
dynamic