public Client() { NormalVolley nv = new NormalVolley(); System.Console.WriteLine($"normal volley has: {nv.CountPlayers()} players on the field"); Sand s = new Sand(nv); System.Console.WriteLine($"beach volley has: {s.CountPlayers()} players on the field"); }
public Sand(NormalVolley normalVolley) : base(normalVolley) { }
public BeachVolley(NormalVolley normalVolley) { this._normalVolley = normalVolley; }