λFPAI
Practice/Employee Roles

Employee Roles

Easy

Create a base Employee with a method calculate_salary().

Subclasses: Manager (bonus), Developer (overtime), Intern (stipend).

Store employees in a list and calculate total payroll using polymorphism.

OOP Focus: Real-world role hierarchy.

Note: This is statement-only in the current Practice version; stdout should be empty.

Loading editor...

Output

Run or submit to see output.