Easy
Use the Parent's Method
class Employee has pay() returning a base salary. class Manager(Employee) overrides pay() to return super().pay() + 5000. Read a salary and print the Manager's pay.Input
One integer.
Output
One integer.
Sample 1
Input
30000
Output
35000
Sample 2
Input
0
Output
5000
Output appears here