Question: 12. Add another method to the class from question 10. This method will be an instance method called average. This method will take a FinalClass
12. Add another method to the class from question 10. This method will be an instance method called average. This method will take a FinalClass object as an input parameter and average it to the object that called the method. The average will be the average of the grade value contains in each of the two objects. A new FinalClass object will be returned that is created with this new average. Assuming that the variables stuff and stuff 2 are FinalClass objects, below is a possible usage of this method. (5) FinalClass answer = stuff.average ( stuff2)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
