Matching
Match each term with the correct statement below.
Premises:
Must be the first statement in the subclass constructor
Keeps data private
A part of UML
Inherits from a base class
A base class
Determines whether an object is a member or descendant of a class
Makes a program run faster
A mechanism that enables one class to assume both the behavior and the attributes of another class
An instance method call
Responses:
inheritance
inlining
virtual method call
information hiding
derived class
super()
superclass
instanceof
class diagram
Correct Answer:
Premises:
Responses:
Must be the first statement in the subclass constructor
Keeps data private
A part of UML
Inherits from a base class
A base class
Determines whether an object is a member or descendant of a class
Makes a program run faster
A mechanism that enables one class to assume both the behavior and the attributes of another class
An instance method call
Premises:
Must be the first statement in the subclass constructor
Keeps data private
A part of UML
Inherits from a base class
A base class
Determines whether an object is a member or descendant of a class
Makes a program run faster
A mechanism that enables one class to assume both the behavior and the attributes of another class
An instance method call
Responses:
Related Questions
Q22: When you create parent and child classes
Q27: The methods in a subclass can use
Q29: If jrStudent is an object of Student
Q35: You can use the keyword _ within
Q39: You would like to make a member
Q44: What is the difference between derived classes
Q64: Create a class named Student that contains
Q67: What is information hiding and how is
Q70: How is the keyword protected used?
Q77: What happens when you write your own
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents