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)); }
/** * Constructor with Astronauta * */ public NASAfunc(NASAfunc u) { username = u.Username; ID = u.Id; password = u.Password; }