Ask Question
28 January, 02:28

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.

+5
Answers (1)
  1. 28 January, 03:04
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers