Computer
Which concept combines data and methods into a single unit?
Show answer
Correct answer: A) Encapsulation
Encapsulation combines data and methods in one unit.
A class is commonly used to achieve encapsulation.
It helps protect data from direct outside access.
Last verified on 14-11-2026
Explanation
Encapsulation combines data and methods in one unit.
A class is commonly used to achieve encapsulation.
It helps protect data from direct outside access.
Last verified on 14-11-2026