

MCQOPTIONS
Saved Bookmarks
1. |
Find which of the following uses encapsulation?a) void main(){ int a; void fun( int a=10; cout<< |
A. | void main(){ int a; void fun( int a=10; cout<<a); fun(); } |
B. | class student{ int a; public: int b;}; |
C. | class student{int a; public: void disp(){ cout<<a;} }; |
D. | struct topper{ char name[10]; public : int marks; } |
Answer» D. struct topper{ char name[10]; public : int marks; } | |