Knowledge Check #4
Object Oriented Programming — 4 pts max
- When a method inherited from a parent class is overridden with a new definition in a child class. [1 pt]
- What would the body of the pay method look like in the new Salary class, derived from the Employee class, where pay is overridden so that it returns the value 800? [3 pts]