asked 202k views
0 votes
If the member variables in a base class are private, then

A. they can be directly accessed or changed in the derived class
B. the derived class must use any accessor or modifier functions from the base class
C. making them private causes a syntax error.
D. you must declare them in the derived class also.

asked
User FooBar
by
7.4k points

1 Answer

4 votes

Answer:

Option B

Step-by-step explanation:

answered
User Ottie
by
7.9k points