Hello,
Panicking here. My professor asked for an assignment in which we use:
"Eight private methods (1 method per calculated value) to calculate the values and store them in the private properties. Each of the 8 methods will use the object properties to calculate the values. In other words, those methods will not have parameters."
However, how on earth do you write the what you actually want the private function to do? Every time I try and define it, I get the error 'such_and_such_method is private'.
Yes, that's exactly it. I just don't know how to tell the computer what the private method should do. For example, my private method, calc_area, should calculate the area from a base and height entered by the user in the main program. No idea where to define that, however.