English

In what way is a class Encapsulated? - Computer Applications

Advertisements
Advertisements

Question

In what way is a class Encapsulated? 

Short Answer

Solution

If data members of the class are declared private then they can be used only within the member methods. A class is Encapsulated in this way. 

shaalaa.com
  Is there an error in this question or solution?
Chapter 8: Encapsulation and Inheritance - Review Insight [Page 443]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 8 Encapsulation and Inheritance
Review Insight | Q 2. | Page 443
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×