doniaelshenwy / salary Goto Github PK
View Code? Open in Web Editor NEWcreate a class Person which have a getSalary function which take an int parameter and return int . Create class Manager and Employee that inherit from Person and override getSalary method. getSalary method of Employee = Salary * 2 and getSalary method of Manager= Salary * 5