Functions/Methods


 

Client Code
(code outside the class
that uses an object of the class)


  ...
  double gpa = s.getGPA();
  ...

 

getting
calculated value
example

 


Alyce Brady, Kalamazoo College