/// <summary> /// Человек /// </summary> /// <param name="name">Имя</param> /// <param name="surname">Фамилия</param> /// <param name="age">Возраст</param> /// <param name="gender">Пол</param> public Child(string name, string surname, byte age, Gender gender, string kindergardenOrSchool, Adult mother, Adult father) : base(name, surname, age, gender) { Name = name; Surname = surname; Age = age; Gender = gender; KindergardenOrSchool = kindergardenOrSchool; Mother = mother; Father = father; }
/// <summary> /// Пойти в ночной клуб /// </summary> /// <param name="person">Человек, который идет в клуб</param> public string GoToNightclub(Adult person) { return($"Быть взрослым классно. " + $"{person.Name}, приятно тебе провести время! :)"); }
/// <summary> /// Генерация паспортных данных /// </summary> /// <param name="adult">Взрослый человек</param> private static void GetPasportData(Adult adult) { var _passport = _randNum.Next(100000000, 999999999).ToString(); adult.Passport = _passport; }