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.)

Answer: (Write/paste the answer code below this line. Indent properly. Don't code what is not asked.)

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

Visual Basic6 Database Programming

Authors: John W. Fronckowiak, David J. Helda

1st Edition

0764532545, 978-0764532542

More Books

Students also viewed these Databases questions

Question

differentiate the function ( x + 1 ) / ( x ^ 3 + x - 6 )

Answered: 1 week ago