Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create required classes, enums, etc. for the given requirements. Assume we need to represent employees, each employee has an id, name, phone number, designation, manager,

Create required classes, enums, etc. for the given requirements. Assume we need to represent employees, each employee has an id, name, phone number, designation, manager, department and team members working under him/her. The manager is also an employee and team members are also employee (definitely, multiple members in a team). There are only four departments (a fix list, you can say) e.g. SALES, PURCHASE, ACCOUNTS and WAREHOUSE. We also want to store phone number of each department (assume it would not change).

The employee phone number shall be composed of area code and line number. Define Employee in such a way that its object should not be created unless user provide id, designation and the deparment. (Only classes/enums definitions are required, no need to create objects and get any data from user to demostrate complete usage etc.)

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

Step: 3

blur-text-image

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

Professional SQL Server 2012 Internals And Troubleshooting

Authors: Christian Bolton, Justin Langford

1st Edition

1118177657, 9781118177655

More Books

Students also viewed these Databases questions

Question

3. Would you say that effective teamwork saved their lives?

Answered: 1 week ago