...

/

Number Class with Methods defined Outside it

Number Class with Methods defined Outside it

Learn to implement a class with member methods defined outside it.

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 of n in the class’ ...