Gr H.

asked • 01/18/22

What is the answer to the question in the description

Assume that the following code exists inside the main method of SomeClass, and that this code compiles without errors:

int result = obj.calculate(4, 3.14);

where obj is an object of the MyObject class.

Which of the following is true about the calculate method?

  1. It is a public method.
  2. It is located in SomeClass.
  3. It is not located in SomeClass.
 a Statement I only
 b Statement II only
 c Statement III only
 d Statements I and II only
 e Statements I and III only


1 Expert Answer

By:

Ethan D. answered • 01/19/22

Tutor
5 (1)

Software Engineer at Bio-Technology Corporation

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.