Block 3 Unit 12 Flashcards
(1 cards)
1
Q
Explain how the Quantity pattern can be applied to the user-defined type Money.
A
Money is a quantity with a value (the amount) and a unit (the currency).
Explain how the Quantity pattern can be applied to the user-defined type Money.
Money is a quantity with a value (the amount) and a unit (the currency).