LearnPy Hub
← Inheritance & Special Methods problems
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
solution.py
Output appears here
Use the Parent's Method · Python practice problem · LearnPy Hub