English

Define the following: Data Hiding

Advertisements

Question

Define the following:

Data Hiding 

Definition
Advertisements

Solution

Data hiding is an important feature of Object-Oriented Programming (OOPS) that restricts direct access to the data members of a class. It protects data from unauthorized access and modification by using access specifiers such as private.

shaalaa.com
  Is there an error in this question or solution?
Chapter 3: Programming in Java (Review of Class XI Sections B and C) - EXERCISE [Page 98]

APPEARS IN

Dheeraj Mehrotra Computer Science [English] Class 12
Chapter 3 Programming in Java (Review of Class XI Sections B and C)
EXERCISE | Q 6. (a) | Page 98
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×