Vidyalelo
Python · Q2

Advanced OOP Concepts

Programming · Python · question 2

Q2

What is the main benefit of encapsulation?

A.
Improved code readability
B.
Faster execution
C.
Enhanced security
Answer
D.
Better memory management

Answer: Option C

Solution

Answer: Option C
Solution:
Encapsulation enhances security by controlling access to data and methods of an object.