In C#
Create classes: Person, Student, Employee, Professor, Staff andAddress
- ☠Address class must have suitable auto-implemented propertiesfor Address 1, Address 2 and City.
- ☠Person class must have suitable auto-implemented propertiesfor Name, Residence (type Address) and email.
- ☠Student and Employee must be subclasses of Person.
- ☠Employee must be a super class for Professor and Staff.
- ☠Employee class must have suitable auto-implemented propertiesfor salary (between 2000 to 8000), and hire date.
- ☠Professor class must have suitable auto-implementedproperties for office hours and rank (use enum, e.g. Assist. Prof.,Assoc. Prof., etc.)
- ☠Staff class must have auto-implemented property for adesignation (use enum, e.g. Office Assistance, Clerk, etc.)
- ☠All classes must have suitable constructor(s) and making useof super class constructors as applicable.
- ☠Override the ToString method in each class to return theclass name and all other information in one/single line (use stringinterpolation and use base class ToString as applicable)
In the Main Method, create three Lists for (Student, Staff, andProfessor) with hard-coded data for at least 4 entries each.
Implement the menu driven CONSOLE logic taking a user inputas:
Press 1 to modify Student
Press 2 to modify Staff
Press 3 to modify Professor
Press 0 to exit program
â˜modify Student Menu Press 1 to list all students Press 2 to add a new student Press 3 to update … Press 4 to delete … Press 5 to return to main menu | ☠modify Staff Menu Press 1 to list all Staff Press 2 to add a new Staff Press 3 to update … Press 4 to delete … Press 5 to return to main menu | â˜modify Professor Menu Press 1 to list all Professors Press 2 to add a new Professor Press 3 to update … Press 4 to delete … Press 5 to return to main menu |
☠Console application must have a hierarchy of above-shown menusand run continuously until the person quits the application
☠To list, add, update and delete to a list one must useLINQ.