When you declare a derived class object, this object inherits the members of the base class, but the derived class object cannot directly access the ____.

A. private data members of the base class
B. data members in its own class
C. base class constructors
D. public data members of the base class


Answer: A

Computer Science & Information Technology

You might also like to view...

What is wrong with the following recursive function? It should print out the array backwards.

void print(int array[], int start, int size) { if(start < size) return; else { print(array, start+1,size); cout << array[start] << endl; } } a. infinite recursion b. the stopping condition is wrong c. the recursive call is wrong d. nothing

Computer Science & Information Technology

Provide a high-level description of the address selection process from end-to-end.

What will be an ideal response?

Computer Science & Information Technology

When you export a table to Excel, the field names become the column headings and the records become the rows in the Excel spreadsheet

Indicate whether the statement is true or false

Computer Science & Information Technology

COGNITIVE ASSESSMENT Which of the following terms is used to describe a small text file that a web server stores on your computer?

A. a breadcrumb B. a nugget C. a cracker D. a cookie

Computer Science & Information Technology