Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // תרגיל 3
- class Customer
- {
- private string CName; // שם הלקוח
- private string JoinDate; // תאריך הצטרפות לחוג
- private string EndDate; // תאריך סיום החוג
- }
- class Activity
- {
- private string ActName; // שם החוג
- private int MinPlayers; // מינימום משתתפים
- private int MaxPlayers; // מקסימום משתתפים
- private int ActPrice; // מחיר החוג
- private Customer[] ArrPlayers = new Customer[10]; // מערך משתתפים
- private bool EnoughPlayers; // משתנה שמציין אם יש מספיק משתתפים
- private int Players; // משתנה שמציין את מספר הנרשמים
- }
- class Fitness
- {
- private string FName; // שם הרשת
- private Activity[] ArrPlayers = new Activity[10]; // מערך משתתפים
- }
- public Activity(string ActName, int MinPlayers, int MaxPlayers, int ActPrice, Customer[] ArrPlayers, bool EnoughPlayers, int Players)
- {
- this.ActName = ActName;
- this.MinPlayers = MinPlayers;
- this.MaxPlayers = MaxPlayers;
- this.ArrPlayers = ArrPlayers;
- this.EnoughPlayers = EnoughPlayers;
- this.Players = Players;
- }
- public Activity(Activity a, Customer[] arr)
- {
- this.ActName = a.ActName;
- this.MinPlayers = a.MinPlayers;
- this.MaxPlayers = a.MaxPlayers;
- this.ActPrice = a.ActPrice;
- this.EnoughPlayers = a.EnoughPlayers;
- this.Players = a.Players;
- this.arr = a.arr;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement