/// <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()); }
public int HobbiesConsumption(double expendableMoney, Hobbies hobby) { return(Convert.ToInt32(expendableMoney / hobby.GetCost())); }