Number Class with Methods defined Outside it
Learn to implement a class with member methods defined outside it.
We'll cover the following...
Challenge
Write a Number
class that maintains an int
. It should have the following member functions defined outside this class to perform various operations on the int
:
-
void setNumber ( int n )
stores the value ofn
in the class’ ...