Hi, there! As I think that the task is a little bit incorrect. And I'll tell you why. Of course you can pass an averageGrade as a parameter but the whole meaning of averageGrade is that it has to be computed in getAverage() method, given 3 grades. And it doesn't make sense if we add a new record passing averageGrade as a parameter, because it has to be computed! Otherwise getAverage is of no use. And as about its type, what is the problem? Just take a look at the return type of getAverage(). Regards.
On Mar 11, 5:07 pm, Jerrold <[email protected]> wrote: > Hi miga, > > i am confused because as what i have come to understand with the > problem. the average grade is to be computed after setting the grades > for math.. etc. > So does this mean that what i am to make a parameter of my constructor > computes for the average grade already? like the constructor would > take in as parameter the grades and also the average grade? > Or am i not getting it right? > > > >What data type is the parameter for average grade? > > > What do you think it should be? > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en -~----------~----~----~----~------~----~------~--~---
