Discussion
Which OOP concept hides internal data from outside access ?
Answer: A
Hiding internal data from outside access is encapsulation.
Encapsulation bundles an object's data and the methods that work on it into one unit and restricts direct access to the data, typically by making fields private and exposing them only through public methods. Outside code cannot change the internal state except in the ways the class allows.
Abstraction is the near miss: it hides implementation complexity and shows only essential features, a design idea rather than data protection. Inheritance reuses a class's members in a new class, and polymorphism lets one interface take many forms.
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development