← Graph

Tell Don't Ask

concept 1 connections

Object-oriented principle: rather than asking an object for state and making decisions about it, tell the object what to do and let it handle the work internally. Bellware frames it as an expression of encapsulation that reduces afferent coupling by shielding object state from the outside world — objects perform work in response to method invocations instead of exposing data interfaces.

category
pattern
Presents tell-don't-ask as an expression of encapsulation that reduces afferent coupling.

Provenance

Read by
2 extractions