// using : base() like here calls the constructor of the base class with the arguments passed in
 // here it calls "Colleague(Mediator mediator)"
 public GormanSlacks(Mediator mediator)
     : base(mediator)
 {
     Debug.Log ("Gorman Slacks signed up with the stockexange");
 }
 public JTPoorman(Mediator mediator)
     : base(mediator)
 {
     Debug.Log ("JT Poorman signed up with the stockexange");
 }
 public Colleague(Mediator mediator)
 {
     this.mediator = mediator;
 }
Exemplo n.º 4
0
 public Colleague(Mediator m)
 {
     mediator = m;
 }