Value Object

Noun · Development

Definitions

  1. An object defined by its attribute values rather than a unique identity — two value objects with the same fields are considered equal. Value objects are typically immutable and used in Domain-Driven Design to model concepts like Money, DateRange, or Address.

    In plain English: An object whose identity is determined entirely by its contents, like how two $10 bills are interchangeable even though they're physically different.

    Example: "Money is a value object — two instances of $10 USD are equal regardless of which variable holds them."

Related Terms