Пример #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()));
 }