199k views
5 votes
A public variable declared in class ABC CAN be accessed:

a. From a member function of class ABC?

A.true
B.false

b. From a member function of a child class of ABC?

A.true
B.false

c. From a friend function of class ABC, accessed using the dot operator?

A.true
B.false

d. From a member function of a friend class of ABC, accessed using the dot operator?

A.true
B.false

e. From an otherwise unrelated class that declares ABC to be its' friend, accessed using the dot operator?

A.true
B.false

f. From main, accessed using the dot operator?

A.true
B.false

User Keypoint
by
3.7k points

1 Answer

5 votes

Answer:

A. True;

B. True

C. True

D. False

E. True

F. False

Step-by-step explanation:

User Pshah
by
4.0k points