Q. What is the benefit of using properties for encapsulation?

A
Faster execution
B
Controlled attribute access
C
More attributes
D
Less code
Solution:

Properties allow controlled access to attributes, enhancing encapsulation.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!