Ask Question
21 May, 22:54

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. 22 May, 00:55
    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?
Get 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 there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers