हिंदी

In what way does a class enforce data hiding? - Computer Applications

Advertisements
Advertisements

प्रश्न

In what way does a class enforce data hiding?

लघु उत्तरीय

उत्तर

A class is a template for creating objects. Private methods and variables are only accessible within the class. These are only accessible internally and remain hidden from the outer world that a class promotes data hiding. 

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 8: Encapsulation and Inheritance - EXERCISES [पृष्ठ ४४६]

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×