Suppose that bClass is a class. Which of the following statements correctly derives the class dClass from bClass?

A. class dClass:: public bClass
{
//classMembersList
};

B. class dClass: private bClass
{
//classMembersList
};
C. class dClass:: protected bClass
{
//classMembersList
};
D. class bClass: public dClass
{
//classMembersList
};


Answer: B

Computer Science & Information Technology

You might also like to view...

Two tasks that are operating ________ are both making progress at once.

a. sequentially b. concurrently c. iteratively d. recursively

Computer Science & Information Technology

The input dialog displayed by method showInputDialog contains a __________ compo- nent that enables the user to enter input.

a) JTextArea b) JTextField c) JLabel d) title bar

Computer Science & Information Technology

In Wired Equivalent Privacy (WEP), the extra code used to start the encryption process is stored in the WEP key in the form of what is called a(n) ____________________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

C# has two types of string literals. Quoted string literals appear between double quotation marks (" ")  and verbatim string literal, which start with the at symbol (@).

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

Computer Science & Information Technology