All challenges
Multiple ChoiceBeginner 45s

Entity vs Value Object

Which pair best distinguishes Entity from Value Object?
Options
  1. 1Entity has identity across time; Value Object is defined solely by its attribute values and is immutable
  2. 2Entity is the one that gets persisted to storage. Value Object is never persisted at all.
  3. 3Entity is a class with mutable state. Value Object is a plain immutable struct. The implementation type distinguishes them.
  4. 4Entity carries methods and behavior. Value Object carries only its raw data fields. Presence of behavior separates the two.

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle