Answered step by step
Verified Expert Solution
Link Copied!

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 youimage text in transcribedimage text in transcribed

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 attribute

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 12c SQL

Authors: Joan Casteel

3rd edition

1305251032, 978-1305251038

More Books

Students also viewed these Databases questions

Question

If applicable, how should technical novelty be handled?

Answered: 1 week ago

Question

Acquire knowledge of security technology.

Answered: 1 week ago