loading...

Understanding Encapsulation

swarupkm profile image Swarup Kumar Mahapatra ・1 min read

I have been reading Domain Driven Design for a while.

I realized, creating Value Objects and building Entities by composing Value Objects is the best way to explain Encapsulation.

Getters and Setters do not explain encapsulation at all.
Agree?

Discussion

markdown guide