Question 1: Design a class to signify an employee. Comprise the given members:
a) Employee Number
b) Name
c) Address
d) Ph No.
e) Department
f) JDT
Use the overloaded constructors to:
A) Give initial values to Name, employee Number, Address and Phone Number.
B) To give the initial values to all fields apart from Department.
Write a method to assign department to the employee. Determine the total number of employee objects made in the program. Display the data of all the employees.
Question 2: Design a class to represent a bank account. It comprises the given members:
Data members:
• Account Number
• Name
• Type of Account
• Balance amount
Methods:
• To give initial values for type of account and balance
• To deposit an amount
• To withdraw an amount
• To display name and balance
Initial value for Account Number and Name has to be taken from the command line.