コード例 #1
0
 //Makes professionalSwimmer to have a bathingsuit
 public override void SetSuit(BathingSuit bathingSuit)
 {
     if (bathingSuit != null)
     {
         base.SetSuit(bathingSuit);
     }
 }
コード例 #2
0
 public override void SetSuit(BathingSuit bs)
 {
     // ProfessionalSwimmer har alltid BathingSuit pa sig
     if (bs != null)
     {
         base.SetSuit(bs);
     }
 }
コード例 #3
0
ファイル: YoungSwimmer.cs プロジェクト: OverRibban/BathHouse
 /// <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);
 }
コード例 #4
0
 public virtual void SetSuit(BathingSuit bs)
 {
     this.suit = bs;
 }
コード例 #5
0
 public Swimmer(string name, BathingSuit bathingsuit)
 {
     this.name = name;
 }
コード例 #6
0
 /// <summary>
 /// Sets swimmer suit
 /// </summary>
 /// <param name="suit"></param>
 public void SetSuit(BathingSuit suit)
 {
     this.Suit = suit;
 }
コード例 #7
0
 /// <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;
 }
コード例 #8
0
 public ProfessionalSwimmer(string name, BathingSuit bathingsuit) : base(name, bathingsuit)
 {
 }
コード例 #9
0
 /// <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);
 }
コード例 #10
0
 public YoungSwimmer(string name, BathingSuit bathingsuit) : base(name, bathingsuit)
 {
 }
コード例 #11
0
 //Gives swimmer a bathingsuit or not based on what the swimmer is wearing
 public virtual void SetSuit(BathingSuit bathingSuit)
 {
     suit = bathingSuit;
 }
コード例 #12
0
 public Swimmer(string name, BathingSuit suit)
 {
 }
コード例 #13
0
 public override void SetSuit(BathingSuit bathingSuit)
 {
     base.SetSuit(bathingSuit);
 }