Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Need help with this python program~thank you Part 1: Creating the Employee Class Write a class named Employee that holds the following data about an
Need help with this python program~thank you
Part 1: Creating the Employee Class Write a class named Employee that holds the following data about an employee in private attributes: name (string), ID number (integer), department (string), and ob title (string). Include the following methods in the class as well: A constructor,__init__(name, ID), that initializes the employee's name and ID number to the values of the parameters. A set_department (dep) method that sets the department attribute to the value of the dep parameter A set_job_title (job) method that sets the job title attribute to the value of the job parameter A get_name () method that returns the name attribute Aget ID num () method that returns the ID number attribute A get_department () method that returns the department attribute A get_job title () method that returns the job title attribute Part 1: Creating the Employee Class Write a class named Employee that holds the following data about an employee in private attributes: name (string), ID number (integer), department (string), and ob title (string). Include the following methods in the class as well: A constructor,__init__(name, ID), that initializes the employee's name and ID number to the values of the parameters. A set_department (dep) method that sets the department attribute to the value of the dep parameter A set_job_title (job) method that sets the job title attribute to the value of the job parameter A get_name () method that returns the name attribute Aget ID num () method that returns the ID number attribute A get_department () method that returns the department attribute A get_job title () method that returns the job title attributeStep 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