Advertisement
Guest User

Cinema

a guest
Jul 17th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. Human.cs
  2. namespace Cinema
  3. {
  4. internal abstract class Human
  5. {
  6. private string Name { get; set; }
  7. private int Age { get; set; }
  8. }
  9. }
  10. -------------------
  11. Actor.cs
  12. namespace Cinema
  13. {
  14. internal class Actor : Human
  15. {
  16. private List<Film> FilmList { get; set; }
  17. }
  18. }
  19. ---------------------
  20. FilmMaker.cs
  21. namespace Cinema
  22. {
  23. internal class FilmMaker: Human
  24. {
  25. private List<Film> FilmList { get; set; }
  26. }
  27. }
  28. ---------------------------
  29. Film.cs
  30. namespace Cinema
  31. {
  32. class Film
  33. {
  34. private string Name { get; set; }
  35. private int TimeOfFilmInMinutes { get; set; }
  36. private FilmMaker FilmMaker{get;set;}
  37. private List<Actor> ActorList { get; set; }
  38. private bool IsInRow { get; set; }
  39. }
  40. }
  41. ---------------------------------
  42. FilmInRow.cs
  43. namespace Cinema
  44. {
  45. class FilmInRow : Film
  46. {
  47. private int NumberInRow { get; set; }
  48. }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement