Question
Easy

........... is used to combine data and its associated functions under a single unit.

1
Inheritance
2
Encapsulation
3
Association
4
Polymorphism
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter:
Topic:
Correct Answer
Option B
Explanation

The correct option is (2): Encapsulation is a cornerstone of Object-Oriented Programming (OOP) and is precisely defined as the mechanism for bundling data (attributes/variables) and the methods (functions) that operate on that data into a single, self-contained unit, traditionally known as a class. This concept directly answers the question as its primary function is to create a logical container for related data and behavior. The bundling facilitates a critical feature…Read More