ADT “Ratio”
Operations:
Ratio()
getNumerator()
getDenominator()
value()
add()
reduce() (if private)
isNegative()
Type of operation
Constructor --- Service
accessor --- Service
accessor --- Service
accessor --- Service
mutator ---- Service
mutator ---- utility
accessor ---- predicate
Previous slide
Next slide
Back to first slide
View graphic version