示例#1
0
 public override void InputPersonInformation()
 {
     base.InputPersonInformation();
     Console.Write("Attend school(yes/no)");
     AttendSchool = BoolInput.YesOrNo();
     Console.Write("Hobby: ");
     Hobby = StringInput.InputStringWithLettersOnly("Hobby: ");
 }
示例#2
0
 public virtual void InputPersonInformation()
 {
     Console.Write("Name: ");
     Name = StringInput.InputStringWithLettersOnly("Name: ");
     Console.Write("Surname: ");
     Surname = StringInput.InputStringWithLettersOnly("Surname: ");
     Console.Write("Age: ");
     Age = NumbersInput.Integer("Age");
     Console.Write("Gender: ");
     Gender = StringInput.InputGender();
 }