A public static method named computeSum() is located in ClassA. To call the method from within ClassB,

Question:

A public static method named computeSum() is located in ClassA. To call the method from within ClassB, use the statement _____________.
a. ClassA.computeSum();
b. ClassB(computeSum());
c. ComputeSum(ClassA);
d. You cannot call computeSum() from within ClassB.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Java Programming

ISBN: 978-1337397070

9th edition

Authors: Joyce Farrell

Question Posted: