Ask Question

Assume the availability of a class named Arithmetic that provides a static method, add, that accepts two int arguments and returns their sum. Two int variables, euroSales and asiaSales, have already been declared and initialized. Another int variable, eurasiaSales, has already been declared. Write a statement that calls add to compute the sum of euroSales and asiaSales and that stores this value in eurasiaSales.

+1
Answers (1)
  1. 17 August, 09:18
    0
    The following statement are:

    eurasiaSales = Arithmetic. add (euroSales, asiaSales);

    Explanation:

    Firstly we define the class "Arithmetic", then set the static type function "add () " and pass two integer type "euroSales" and "asiaSales" which returns their sum after that set another integer type variable "eurasiaSales" which stores an output of the function "add () ".

    The following statement are true.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Assume the availability of a class named Arithmetic that provides a static method, add, that accepts two int arguments and returns their ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers