Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. // תרגיל 3
  2. class Customer
  3. {
  4. private string CName; // שם הלקוח
  5. private string JoinDate; // תאריך הצטרפות לחוג
  6. private string EndDate; // תאריך סיום החוג
  7. }
  8.  
  9. class Activity
  10. {
  11. private string ActName; // שם החוג
  12. private int MinPlayers; // מינימום משתתפים
  13. private int MaxPlayers; // מקסימום משתתפים
  14. private int ActPrice; // מחיר החוג
  15. private Customer[] ArrPlayers = new Customer[10]; // מערך משתתפים
  16. private bool EnoughPlayers; // משתנה שמציין אם יש מספיק משתתפים
  17. private int Players; // משתנה שמציין את מספר הנרשמים
  18. }
  19.  
  20. class Fitness
  21. {
  22. private string FName; // שם הרשת
  23. private Activity[] ArrPlayers = new Activity[10]; // מערך משתתפים
  24. }
  25.  
  26. public Activity(string ActName, int MinPlayers, int MaxPlayers, int ActPrice, Customer[] ArrPlayers, bool EnoughPlayers, int Players)
  27. {
  28. this.ActName = ActName;
  29. this.MinPlayers = MinPlayers;
  30. this.MaxPlayers = MaxPlayers;
  31. this.ArrPlayers = ArrPlayers;
  32. this.EnoughPlayers = EnoughPlayers;
  33. this.Players = Players;
  34. }
  35.  
  36. public Activity(Activity a, Customer[] arr)
  37. {
  38. this.ActName = a.ActName;
  39. this.MinPlayers = a.MinPlayers;
  40. this.MaxPlayers = a.MaxPlayers;
  41. this.ActPrice = a.ActPrice;
  42. this.EnoughPlayers = a.EnoughPlayers;
  43. this.Players = a.Players;
  44. this.arr = a.arr;
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement