When designing a class hierarchy, which of the following should be true of a sup
ID: 3712612 • Letter: W
Question
When designing a class hierarchy, which of the following should be true of a superclass?
Question 12 options:
A)
A superclass should contain the most specific details of the class hierarchy.
B)
A superclass should have public data in order to provide access for the entire class hierarchy.
C)
A superclass should contain the data and functionality that are common to all subclasses that inherit from the superclass.
D)
A superclass should be the largest, most complex class from which all other subclasses are derived.
E)
A superclass should contain the data and functionality that are only required for the most complex class.
A)
A superclass should contain the most specific details of the class hierarchy.
B)
A superclass should have public data in order to provide access for the entire class hierarchy.
C)
A superclass should contain the data and functionality that are common to all subclasses that inherit from the superclass.
D)
A superclass should be the largest, most complex class from which all other subclasses are derived.
E)
A superclass should contain the data and functionality that are only required for the most complex class.
Explanation / Answer
Ans:1
Option C is correct.
===============================================================
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.