class relationship UML for login and user classes

network_sat

Estimable
Jul 10, 2015
8
0
4,510
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
 

network_sat

Estimable
Jul 10, 2015
8
0
4,510
stop spying as usual, if you do not answer or don't have an answer don't bother to comment. It is not matter of study to answer this question, as it is analytical not text book signature lesson...