A Quantity class with units
- by Ryan Ohs
Goals
Create a class that associates a numeric quantity with a unit of measurement.
Provide support for simple arithmetic and comparison operations.
Implementation
An immutable class (Could have been struct but I may try inheritance later)
Unit is stored in an enumeration
Supported operations:
Addition w/ like units
…