English

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

Advertisements
Advertisements

Question

In what way does a class enforce data hiding?

Short Answer

Solution

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
  Is there an error in this question or solution?
Chapter 8: Encapsulation and Inheritance - EXERCISES [Page 446]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 8 Encapsulation and Inheritance
EXERCISES | Q V. 2. | Page 446
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×