Which of the following would be the most appropriate way to invoke the
CalculateAvg( ) method found in the Student class if an object
named gradStudent had been instantiated from the class?
public double CalculateAvg(double,double)
a. gradStudent = CalculateAvg(87.2, 90);
b. answer = Student.CalculateAvg(87.2, 90);
c. CalculateAvg(87.2, 90);
d. answer = gradStudent.CalculateAvg(double, double);
e. answer = gradStudent.CalculateAvg(87.2, 90);
Sorry the answer is not available at the moment…
If you are able to find the answer, please make sure to post it here. So that your Juniors have smile on their lips and feel happy.
Spread the 'tradition of sharing'.