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...

What is the value of numbers.size() after the following code? vector numbers(100);

a. 0 b. 10 c. 100 d. unknown

Computer Science & Information Technology

________ wireless technology has the lowest level of power consumption

A) Optical B) Infrared C) Bluetooth D) AirPort

Computer Science & Information Technology

_________ is the rapid determination of the scope of the breach in the confidentiality, integrity, and availability of information and information assets during or just following an incident.

A. Damage assessment B. Containment development C. Incident response D. Disaster assessment

Computer Science & Information Technology

Standard configurations ________.

afford strong control over the system security configuration reduce maintenance costs Both afford strong control over the system security configuration and reduce maintenance costs

Computer Science & Information Technology