Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) the base class begins with a set of predefined methods and fields inherited from its hierarchy of superclasses.
B) the derived class begins with a set of predefined methods and fields inherited from its hierarchy of superclasses.
C) the derived class begins with a set of predefined methods inherited from its hierarchy of fields.
D) the base class begins with a set of predefined methods inherited from its hierarchy of derived classes.
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) public fields and public methods
B) private fields and private methods
C) protected fields and protected methods
D) All of these are correct.
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) The default constructor of the Figure class will be called (line 15) .
B) The default constructor of Radius class will set radius to 0.
C) The attempt to instantiate an object of the abstract class will generate a compiler error.
D) All of these are correct.
Correct Answer
verified
Short Answer
Correct Answer
verified
Multiple Choice
A) A is the superclass and B is the subclass.
B) A is the subclass and B is the superclass.
Correct Answer
verified
Multiple Choice
A) call
B) super
C) constructor
D) clone
Correct Answer
verified
Multiple Choice
A) A class
B) A constant
C) A mutator method
D) An abstract method
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) It simplifies the processing of various elements in the same class hierarchy.
B) To use polymorphism, the classes must be in a different hierarchy.
C) In Greek, the term means "many changes."
D) All of these are correct.
Correct Answer
verified
True/False
Correct Answer
verified
Essay
Correct Answer
verified
View Answer
True/False
Correct Answer
verified
True/False
Correct Answer
verified
Showing 21 - 40 of 61
Related Exams