How many private members does an object of class D have?

Consider the class inheritance.
```
class B
{
public:
B();
B(int nn);
void f();
void g();
private:
int n;
};
class D: public B
{
public:
D(int nn, float dd);
void h();
private:
double d;
};
```
a) 0
b) 1
c) 2
d) 3
e) 4
f) 5

c) 2

Computer Science & Information Technology

You might also like to view...

Traditional Chinese is an example of a(n) ___________ language.

a. multi-byte b. single-byte c. internationalized d. localized

Computer Science & Information Technology

Which of the following is an advantage of the one-on-one method of training?

A. trainees can learn from each other B. very cost-effective C. customized to the needs of the trainee D. maximizes use of company resources

Computer Science & Information Technology