예제 #1
0
 /// <summary>
 /// Copy Constructor
 /// </summary>
 /// <param name="other"></param>
 public Hobbies(Hobbies other)
 {
     this.setCost(other.GetCost());
     this.setName(other.GetName());
 }
 /// <summary>
 /// Copy Constructor
 /// </summary>
 /// <param name="other"></param>
 public Hobbies(Hobbies other)
 {
     this.setCost(other.GetCost());
     this.setName(other.GetName());
 }
 public int HobbiesConsumption( double expendableMoney, Hobbies hobby )
 {
     return Convert.ToInt32(expendableMoney/hobby.GetCost());
 }
예제 #4
0
 public int HobbiesConsumption(double expendableMoney, Hobbies hobby)
 {
     return(Convert.ToInt32(expendableMoney / hobby.GetCost()));
 }