//Makes professionalSwimmer to have a bathingsuit public override void SetSuit(BathingSuit bathingSuit) { if (bathingSuit != null) { base.SetSuit(bathingSuit); } }
public override void SetSuit(BathingSuit bs) { // ProfessionalSwimmer har alltid BathingSuit pa sig if (bs != null) { base.SetSuit(bs); } }
/// <summary> /// Constructor using name and suit parameters /// </summary> /// <param name="name"></param> /// <param name="suit"></param> public YoungSwimmer(string name, BathingSuit suit) : base(name, suit) { SetName(name); SetSuit(suit); }
public virtual void SetSuit(BathingSuit bs) { this.suit = bs; }
public Swimmer(string name, BathingSuit bathingsuit) { this.name = name; }
/// <summary> /// Sets swimmer suit /// </summary> /// <param name="suit"></param> public void SetSuit(BathingSuit suit) { this.Suit = suit; }
/// <summary> /// Constructor using name and suit parameter /// </summary> /// <param name="name"></param> /// <param name="suit"></param> public Swimmer(string name, [Optional] BathingSuit suit) { this.Name = name; this.Suit = suit; }
public ProfessionalSwimmer(string name, BathingSuit bathingsuit) : base(name, bathingsuit) { }
/// <summary> /// Constructor using name and suit constructor /// </summary> /// <param name="name"></param> /// <param name="suit"></param> public ProfessionalSwimmer(string name, BathingSuit suit) : base(name, suit) { SetName(name); SetSuit(suit); }
public YoungSwimmer(string name, BathingSuit bathingsuit) : base(name, bathingsuit) { }
//Gives swimmer a bathingsuit or not based on what the swimmer is wearing public virtual void SetSuit(BathingSuit bathingSuit) { suit = bathingSuit; }
public Swimmer(string name, BathingSuit suit) { }
public override void SetSuit(BathingSuit bathingSuit) { base.SetSuit(bathingSuit); }