Given the class declaration, class D : public class B {/*…*/}; Which of the following is true?

a. public members of B become public members of D
b. private members of D become public members of B
c. protected members of B become protected members of D
d. private members of B become public members of D
e. private members of B are inaccessible in D.


Parts a) c) and e) are correct.
Explanation: Part b) reverses the idea of inheritance. Part d) is wrong.

Computer Science & Information Technology

You might also like to view...

The smallest division on a hard disk is a

A) Track B) Sector C) Cylinder D) Cluster

Computer Science & Information Technology

System software is a set of computer programs that helps a person carry out a task.

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

Computer Science & Information Technology

Which of the following is appropriate for an employee using a business's social network?

A. post content that reflects the business's professional image B. post comments on controversial issues C. post comments that reflect anger, such as at a boss or another employee D. post an invitation for a friend to play a game

Computer Science & Information Technology

Generalized audit software packages perform all of the following tasks except

A. recalculate data fields B. compare files and identify differences C. stratify statistical samples D. analyze results and form opinions

Computer Science & Information Technology