1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Anit [1.1K]
3 years ago
15

Assume that arithmetic is a reference to an object that has a method named add , that accepts two int arguments and returns thei

r 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
Computers and Technology
1 answer:
IgorLugansk [536]3 years ago
6 0

Answer:

Following are the statements

eurasiaSales = arithmetic.add(euroSales, asiaSales); //calls to the add function

Explanation:

Following are the description of the statement.

  • Declared a variable euroSales, asiaSales of "int" type.
  • As given in the question "arithmetic" is a reference type variable that is used to call the method "add".
  • arithmetic.add function is calling the function "add" . In this function we pass the two integer values into it.
  • Finally "eurasiaSales"  is used to store the result of calling arithmetic.add (euroSales, asiaSales) function .
You might be interested in
Who have a ps4 ?<br> Who have 2k20? <br> Are you good a 2k20 ? <br> Add me on Ps4 eoKyriie
Lena [83]

Answer:

lol i would but i have an Xbox...

Explanation:

4 0
3 years ago
Read 2 more answers
Which code snippet could be used to print the following series?
GaryK [48]
C is the answer, I think
7 0
2 years ago
When an object reflects all the light which falls on it it's color will be
lara31 [8.8K]
A- White. shows all wavelengths of light.
4 0
3 years ago
Read 2 more answers
Both successors to C++, _____ , by Sun Microsystems, and _______, by rival MicroSoft, are very similar.
Tanzania [10]

Answer: Java and Forth

Explanation:

   C ++ and Java are comparatively similar language which are composed statically, unequivocally, and obviously. Both language are the object-oriented and planned with the semi-interpretation and run-time during the compilation of the time.

Both uses the curly braces and also they are very similar language as compared with c# and c. Both the successors in the C++ , java and sun micro-system are similar in terms of Microsoft.

 

8 0
4 years ago
In order to "print" the data in an object, the class should override the _____ method.
Olegator [25]

Answer:

toString is right Answer

Explanation:

If you want to represent any object as a string, toString() method comes into existence.  

The toString() method returns the string representation of the object.

If you print any object, java compiler internally invokes the toString() method on the object. So overriding the toString() method, returns the desired output, it can be the state of an object etc. depends on your implementation.

7 0
4 years ago
Other questions:
  • Which of the following is NOT a fixed expense?
    6·1 answer
  • How many check boxes from the following code can be selected at any given time? Home Address Federal Express UPS
    13·1 answer
  • PLEASE HELP ME ASP<br> An ISDN carries a signal in digital form.<br><br> True<br><br> False
    12·2 answers
  • Who distributes IP Address?
    10·1 answer
  • Explain the developments RAM since it was created in 1968 til today.
    7·1 answer
  • ___ design uses the same webpage content, but applies styling depending on the viewport size of the device
    11·1 answer
  • A web-based program that uses artificial intelligence techniques to automate tasks such as searches is called
    8·1 answer
  • Type the correct answer in the box
    13·1 answer
  • In a relational database application, a(n) ________ key is used to link one table with another.
    12·1 answer
  • Choose the answer that best completes the visual analogy.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!