Intrinsic State
noun
say it: “in-TRIN-zik STAYT” /ɪnˈtrɪnzɪk steɪt/
The part of an object's data that belongs to its kind and is the same wherever the object is used, so it can be stored once and shared.
What is intrinsic state?
Intrinsic state is the data that is the same for every object of a kind, wherever the object is used: a premium seat's price, color and perks. In the Flyweight pattern it lives in one shared, read-only object.
In a sentence
- “A premium seat's $90 price is intrinsic state: every premium seat has it, so it's stored once.”
Level: Freelancer · More OOP terms at this level
Updated