T
Tim M.
one of my assignments is create a class named numbers whose
Main()method holds two interger variables, assign values to the
variables. within the class, create two methods, Sum() and
Difference(),that compute the sum of the difference between the values
of the two variables, respectively. each method should perform the
computation and display the results. in turn call each of the two
methods from Main(), passing the values of the two interger valuesof
the two interger variables.
then
B
Add a method named Product() to the Numbers class. This method should
compute the multiplication product of the two intergers. but not
display the answer. instead it should return the answer to the calling
Main() program, which displays the answer.
sorry for the sloppy typing and if any help or ideas is available it
is greatly appreciated.
Main()method holds two interger variables, assign values to the
variables. within the class, create two methods, Sum() and
Difference(),that compute the sum of the difference between the values
of the two variables, respectively. each method should perform the
computation and display the results. in turn call each of the two
methods from Main(), passing the values of the two interger valuesof
the two interger variables.
then
B
Add a method named Product() to the Numbers class. This method should
compute the multiplication product of the two intergers. but not
display the answer. instead it should return the answer to the calling
Main() program, which displays the answer.
sorry for the sloppy typing and if any help or ideas is available it
is greatly appreciated.