Question
Easy

The wrapping of data and function into a single unit is called

1
Data abstraction
2
Data encapsulation
3
Both Data abstraction and Data encapsulation
4
All options are wrong
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter:
Topic:
Correct Answer
Option B
Explanation

The correct option is (2): Data encapsulation, one of the core pillars of Object-Oriented Programming (OOP), is the precise term used to describe the mechanism of bundling data and the functions (or methods) that operate on that data into a single, cohesive unit, typically known as a class. This concept is fundamentally about creating a container or capsule that holds both the variables and the procedures together, protecting them from…Read More

The wrapping of data - HTET Level 3 | Clear Cutoff