मराठी

What will happen if data members are declared private? - Computer Applications

Advertisements
Advertisements

प्रश्न

What will happen if data members are declared private? 

लघु उत्तर

उत्तर

They can only be accessible within the class in which they are declared. The data remains hidden from other classes. 

shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 8: Encapsulation and Inheritance - EXERCISES [पृष्ठ ४४६]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
पाठ 8 Encapsulation and Inheritance
EXERCISES | Q V. 4. | पृष्ठ ४४६
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×