Question: I have to create a school registration system in java, there will be three types of users: admin, teacher, and student. I want a user

I have to create a school registration system in java, there will be three types of users: admin, teacher, and student. I want a user interface as all user types have to login in, then based on the user type the roles will be assigned. I have a enum class called 'usertypes' with admin, teacher, and student. I can't figure out what to put in the user interface class. It may not the best to use, as each usertype will have a user_Id, password, and email. My question is if I use interface for users, all three usertypes have the same information, more or less, what goes in the user interface class? Should I use a different approach? My thought was that these three usertypes would implement user and login into the system. Please help!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!