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

1. A programmer must have the source code for libraries to extend them, even using inheritance.

2. If class D is derived from class B, we speak of D as the child class and B as the parent class.

1. False
Explanation: The programmer only needs the interface, including the type definition to create derived classes to extend an existing library.
2. True
Explanation: Other words, such as B inherits from 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 inC++, so we mention this here.

Computer Science & Information Technology

You might also like to view...

A(n) ________ is a brief, parenthetical reference that is placed at the end of a sentence or paragraph

Fill in the blank(s) with correct word

Computer Science & Information Technology

Modify the solution from Exercise 24.6 so that the program displays the time in the fol- lowing format: “00:00/00:00.” The first “00:00” represents the current time. The second “00:00” rep- resents the total time.

What will be an ideal response?

Computer Science & Information Technology