Beispiel #1
0
        public bool equals(Object o)
        {
            if (this == o)
            {
                return(true);
            }
            if (o == null || o.GetType() != this.GetType())
            {
                return(false);
            }

            NASAfunc u = (NASAfunc)o;

            return(username.Equals(u.Username) && ID.Equals(u.Id) && password.Equals(u.Password));
        }
Beispiel #2
0
 /**
  * Constructor with Astronauta
  * */
 public NASAfunc(NASAfunc u)
 {
     username = u.Username;
     ID       = u.Id;
     password = u.Password;
 }