Find Which Of The Following Uses Encapsulation #80
Find which of the following uses encapsulation?
This multiple choice question (MCQ) is related to the book/course
gs gs111 OOP Object Oriented Programming Java.
It can also be found in
gs gs111 OOPs Concept & Features - OOPs MCQ: Encapsulation - Quiz No.1.
Find which of the following uses encapsulation?
void main(){ int a; void fun( int a=10; cout<<a); fun(); }
class student{ int a; public: int b;};
class student{int a; public: void disp(){ cout<<a;} };
struct topper{ char name[10]; public : int marks; }