How many public 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, double dd);
void h();
private:
double d;
};
```
a) 0
b) 1
c) 2
d) 3
e) 4
f) 5
e) 4
With public inheritance, public members of the base class become public members of the derived class.
Computer Science & Information Technology
You might also like to view...
The initial determination about ____ type has significant impact on the calculated start and finish dates for project tasks.
A. Constraint B. Successor C. Resource D. Antecedent
Computer Science & Information Technology
How often does Windows automatically defragment a hard drive or trim a solid-state drive?
A. Once a week B. Once a day C. Once a month D. Once an hour
Computer Science & Information Technology