engineering recuitment Rajasthan Informatics Assistant (Suchna Sahayak) Mock Test 2023 Programming and Data Structure OOPs concept
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.