हिंदी

Explain the following concept related to the object oriented programming: Data Encapsulation - Computer Science 1

Advertisements
Advertisements

प्रश्न

Explain the following concept related to the object oriented programming:

Data Encapsulation

स्पष्ट कीजिए
Advertisements

उत्तर

Encapsulation is the process of grouping data and functions into a single unit. It is also called data hiding, as it hides the internal details of a class from the user. The user is allowed to access only a limited set of operations on the hidden data through special functions known as methods. Encapsulation helps in hiding both data members and member functions.

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?

APPEARS IN

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×