What does it mean by encapsulation?

1 answer

Answer

1051647

2026-07-29 17:20

+ Follow

Encapsulation makes class fields private, preventing access to it from outside of the class. Essentially, this data is hidden from the rest of the program. It is possible to allow access to the fields via public methods.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.