Answer the following questions true (T) or false (F)

1. If class D is derived from class B, we speak of D as the derived class and B as the base class.

2. If class D is derived from class B, then we say that class D inherits from class B.


1. True
Explanation: Other words, such as B inherits from D, or class D inherits from base class B, are used for this relationship. The terms subclass for derived class and superclass for base class are used in this connection but this is not standard in C++. Nevertheless, many who are familiar with other OOP languages use these terms in C++, so we mention this here.
2. True
Explanation: Other words, such as D is a child class of B, B is a parent class for D, D is a derived class of B, or B is a base class for D, are used for this relationship. The terms subclass for derived class and superclass for base class are used in this connection but this is not standard in C++. Nevertheless, those familiar with other OOP languages use these terms in C++, so we mention this here.

Computer Science & Information Technology

You might also like to view...

When defining a class, the class should be composed of the kind of values a variable of the class can contain, and

a. member functions for that class b. the keyword private c. other class definitions d. nothing else

Computer Science & Information Technology

Which of the following code segments will copy the values of a 5 element array named intOldValues into another 5 element array named intNewValues?

a. ```intIndex = 1 Do While intIndex <=5 intNewValues(intIndex) = intOldValues(intIndex) intIndex = intIndex + 1 Loop ``` b. ```intIndex = 0 Do While intIndex < 5 intNewValues(intIndex) = intOldValues(intIndex) intIndex = intIndex + 1 Loop ``` c. ```For intIndex = 1 To 5 intNewValues(intIndex) = intOldValues(intIndex) Next intIndex ``` d. ```For intIndex = 0 To 4 intOldValues(intIndex) = intNewValues(intIndex) Next intIndex ```

Computer Science & Information Technology

The _____ allows the core of a computer to communicate with other CPU components, such as the memory controller and other cores.

A. ?prefetch unit B. ?decode unit C. ?bus interface unit D. ?control unit

Computer Science & Information Technology

The Read Mode is new to Word 2013. What is the purpose of Read Mode, and how would you describe the view?

What will be an ideal response?

Computer Science & Information Technology