DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Swarup Kumar Mahapatra
Swarup Kumar Mahapatra

Posted on

Understanding Encapsulation

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?

Oldest comments (0)

Let's team up together 🀝

We're Hiring

We're hiring for a Senior Full Stack Engineer to join the DEV team. Want the deets? Head here to learn more about who we're looking for.