public StudentAddress(string country, string city, string adress) { CheckValid.IsString(ref country); this.country = country; CheckValid.IsString(ref city); this.city = city; CheckValid.IsAdress(ref adress); this.adress = adress; }
public Student(string firstName, string lastName, string dateOfAdmission, StudentAddress studentAddress) { CheckValid.IsString(ref firstName); this.firstName = firstName; CheckValid.IsString(ref lastName); this.lastName = lastName; CheckValid.IsDate(ref dateOfAdmission); this.dateOfAdmission = dateOfAdmission; this.studentAddress = studentAddress; }