Question: 7. Write a Java program that has a class called ECECoordinator which represents a coordinator (e.g. BSCSE/BSEEE/MS coordinator) of ECE department of NSU. Naturally, this

7. Write a Java program that has a class called ECECoordinator which represents a coordinator (e.g. BSCSE/BSEEE/MS coordinator) of ECE department of NSU. Naturally, this class should have the following fields: ID, designation, extraHours, etc. Write the class in such a way that a user of this class cannot create more than k objects of this class, where k is a constant read from the ECE chairman. Before creating any object of this class, one must read and set the value of k in a member of this class. If anyone tries to create an object of this class before setting the value of k, then an error would be shown. Similarly, if one tries to create more than k objects, another error message would be shown
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
