Advertisement
nedjo

Discipline

Jan 30th, 2015
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace _1.School
  8. {
  9. public class Discipline : IDetails
  10. {
  11. private string name;
  12. private int numberOfLectures;
  13. private List<Student> students = new List<Student>();
  14.  
  15. public Discipline(string name, int numberOfLectures, List<Student> students)
  16. {
  17. this.name = name;
  18. this.numberOfLectures = numberOfLectures;
  19. this.students = students;
  20. }
  21.  
  22. public string Details
  23. {
  24. get
  25. {
  26. return this.Details;
  27. }
  28. set
  29. {
  30. this.Details = value;
  31. }
  32. }
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement