๐Ÿ“Encapsulation is a subset of Modularity

source

Feldman2019

Modularity lets you define a public interface to hide private implementation details

Encapsulation lets you define a public interface to hide private implementation details about an objects state

Encapsulation is a weaker form of Modularity, a subset of it.

Backlinks