Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started