Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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.

===============================================================

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote