2 Comments
Commenting has been turned off for this post
Jason's avatar

Encapsulation is more than hiding data though. Encapsulation means hiding implementation details, data being one of them. Private methods are one example; they are implementation details, therefore should not be exposed. Ideally code should only depend on interface/contracts.

Expand full comment
Murat Guler's avatar

Agreed. Thank you for your feedback. I made the necessary clarifications.

Expand full comment