Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- public class Discipline : IName, IDetails
- {
- private string name = null;
- public string Name
- {
- get
- {
- return this.name;
- }
- set
- {
- if (string.IsNullOrEmpty(value)) throw new ArgumentNullException("A discipline has to have a name");
- this.name = value;
- }
- }
- public uint NumberOfLectures { get; set; }
- public IList<Student> Students { get; set; }
- public string Details { get; set; }
- public Discipline(string name, uint numberOfLectures, IList<Student> students, string details = null)
- {
- this.Name = name;
- this.NumberOfLectures = numberOfLectures;
- this.Students = students;
- this.Details = details;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement