Question: Create class in Python 3.6 Company The Company class is used to represent a Company that a User works for. It has the following attributes:

Create class in Python 3.6

Create class in Python 3.6 Company The Company class is used to

represent a Company that a User works for. It has the following

Company The Company class is used to represent a Company that a User works for. It has the following attributes: a name, employees who work at this company, and preferred skills for this company. Once a User object has been created, they can be hired at a specific company using the Company class' hire method Attributes Name: Name of the company preferred skills: List of skills that the company prefers its employees to have employees: List of users who work at this company Methods init O Name : e preferred skills: tolook for in Users when recruiting employees: employed Company. Should be empty when Company object is first instantiated repr ( ) Return representation of Company in the following format: . "A Company called [company name] with [# of employees] HW10.pdf (s) recruit (network) Return a list of all the User objects in network that have at least one of the Company's preferred skills hire (employee ) Add employee to list of employeesi change employee's employer attribute to Company If employee is already employed at Company, nothing should happen fire (employee ) Remove employee from Company's list of usersi change employee' s employer attribute back to None

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!