Пример #1
0
 public Student(IExternalCode externalCode, int studentId, List <Course> studies, List <Book> ownsBooks, int cpr, string name, int age) : base(externalCode, cpr, name, age)
 {
     this.StudentId = studentId;
     this.Studies   = studies;
     this.OwnsBooks = ownsBooks;
     CheckRequirements();
 }
Пример #2
0
 public Book(IExternalCode externalCode, Author author, string title, string industryArea)
 {
     ExternalCode      = externalCode;
     this.Author       = author;
     this.Title        = title;
     this.IndustryArea = industryArea;
     CheckRequirements();
 }
Пример #3
0
 public Person(IExternalCode externalCode, int cpr, string name, int age)
 {
     ExternalCode = externalCode;
     this.Cpr     = cpr;
     this.Name    = name;
     this.Age     = age;
     CheckRequirements();
 }
Пример #4
0
 public Course(IExternalCode externalCode, int dbId, Book mainBook, List <Book> otherMaterial, Teacher taughtBy, string education)
 {
     ExternalCode       = externalCode;
     this.DbId          = dbId;
     this.MainBook      = mainBook;
     this.OtherMaterial = otherMaterial;
     this.TaughtBy      = taughtBy;
     this.Education     = education;
     CheckRequirements();
 }
Пример #5
0
 public Teacher(IExternalCode externalCode, string education, int cpr, string name, int age) : base(externalCode, cpr, name, age)
 {
     this.Education = education;
     CheckRequirements();
 }
Пример #6
0
 public Author(IExternalCode externalCode, int cpr, string name, int age) : base(externalCode, cpr, name, age)
 {
     CheckRequirements();
 }