Q:

Find which of the following uses encapsulation?

0

Find which of the following uses encapsulation?


  1. void main(){ int a; void fun( int a=10; cout<
  2. class student{ int a; public: int b;};
  3. class student{int a; public: void disp(){ cout<
  4. struct topper{ char name[10]; public : int marks; }

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (c).class student{int a; public: void disp(){ cout<<a;} };

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now