Which of the following is true? Before you answer, define smaller in this context.

a) When class D is derived from class B, the base class is usually smaller.
b) A subclass is usually smaller than the superclass.
c) A parent class is usually larger than a child class.
d) A class that inherits is usually larger than the class from which it inherits.


a) When class D is derived from class B, the base class is usually smaller. , and d) A class that inherits is usually larger than the class from which it inherits.

Parts b), c) are backwards. Part a) uses the language of the text, and is correct. Part d) is consistent with the text’s usage but doesn't say, “derived” and “base” class. In part b), a subclass is the derived class; a superclass is the base class. The base class is smaller. In part c), the child class is the derived class and the parent class is the base class. The base class is smaller, meaning has fewer members. Note that if ‘smaller” means has fewer objects of the class type, then the answers reverse.

Computer Science & Information Technology

You might also like to view...

Satellite dishes in the United States have to face the ________ sky to send and receive signals

Fill in the blank(s) with correct word

Computer Science & Information Technology

Describe the two rules guiding the notation of IPv6.

What will be an ideal response?

Computer Science & Information Technology

In a database, a(n) ________ is a connection between two tables based on a common field

Fill in the blank(s) with correct word

Computer Science & Information Technology

Where would you find an arrowhead in regard to PowerPoint 2013?

A) At the vertex of two or more lines B) At the corner of any selected shape C) As a shape on a slide D) At the end of a line

Computer Science & Information Technology