1.

Assertion (A): Encapsulation is implemented by a ‘class’ in C++.Reason (R): Private, public, and protected access specifiers are used.

A. Both (A) and (R) are true and (R) is the correct explanation of (A).
B. Both (A) and (R) are true, but (R) is not the correct explanation of (A).
C. (A) is true, but (R) is false.
D. (A) is false, but (R) is true.
Answer» B. Both (A) and (R) are true, but (R) is not the correct explanation of (A).


Discussion

No Comment Found