Question: Question 4 Define a class employee in Python with the given specifications: Instance variables: Employee number, name Methods: Getdata()- To input employee number and name

Question 4 Define a class employee in Python with the given specifications: Instance variables: Employee number, name Methods: Getdata()- To input employee number and name Printdata()- To display employee number and name Define another class payroll, which is derived from employee Instance variable Methods: Inputdata() - To call Getdata() and input salary. Outdata() - To call Printdata() and to display salary. Define another class leave, which is derived from payroll. Instance variable No of days Methods: acceptdata() - To call Inputdata() and input no of days. showdata() - To call Outdata() and to display no of days. Implement the above program in python
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
