Create a class called Simple
.
Simple
should store a single Int
value which you can initialize to 0.
It should also provide a public method called inverse
that takes no parameters and returns the stored value
multiplied by -1.
Stuck? You may find these lessons helpful: