Esempio n. 1
0
 //member method
 public void RegisterContesant(Contestant contestant) // get all the contesant info // reference soda machine?
 {
     contestant.firstName          = UserInterface.EnterFirstName();
     contestant.lastName           = UserInterface.EnterLastName();
     contestant.emailAddress       = UserInterface.EnterEmailAddress();
     contestant.registrationNumber = UserInterface.GetRegistrationNumber();
 }
Esempio n. 2
0
        public Contestant()
        {
            Validate email = new Validate();

            FirstName = UserInterface.EnterFirstName();
            LastName  = UserInterface.EnterLastName();
            Email     = email.CheckForValidEmail();
        }