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());
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.
Step by Step Solution
3.38 Rating (154 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
