posted 10 years ago
I finally got this to work.
I just need someone to tell me whether what i did was right or if it was done by fluke/cheap way etc..
Here is my NumberGiver class
And here is the NumberGiverTester class
The NumberGiverTester code was prewritten so ignore it, my task was to design a NumberGiver class with a constructor and methods which would output the "Expect: x" value when called. The program prints the expected value, I'm just curious whether i did it the right way..?