Suppose I have two classes: login and user
and the scenario is like this: if user enters a command xxx then he will be able to add new user or if he enters command yyy he will be able to login with name and password.
Should I put user object in login class then as every login can have many users but every user can have only one login?
what about the add new user scenario?
thanks
and the scenario is like this: if user enters a command xxx then he will be able to add new user or if he enters command yyy he will be able to login with name and password.
Should I put user object in login class then as every login can have many users but every user can have only one login?
what about the add new user scenario?
thanks