public override void InputPersonInformation() { base.InputPersonInformation(); Console.Write("Attend school(yes/no)"); AttendSchool = BoolInput.YesOrNo(); Console.Write("Hobby: "); Hobby = StringInput.InputStringWithLettersOnly("Hobby: "); }
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(); }