13 - Override


#1

When you're overriding classes, do you always need to pass the same number of arguments? Does the overridden class need to have the same structure as the class it is based off of?


#2

In exercise 13 we're not overriding a class, we're overriding a method from the base class.

CEO does not have to have the same structure as EMPLOYEE, because it's based upon the employee class. And thus the temp employee also only needs the method to compute wages for a temp, nothing more. At least for this exercise.