Assertion (A): Encapsulation is implemented by a ‘class’ in C++.

Reason (R): Private, public and protected access specifiers are used.

1
Both (A) and (R) are true and (R) is the correct explanation of (A).
2
Both (A) and (R) are true, but (R) is not the correct explanation of (A).
3
(A) is true, but (R) is false.
4
(A) is false, but (R) is true. 

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation