/// <summary> /// Overrides the ToString method to give the name of the drink. /// </summary> /// <returns>The name of the drink.</returns> public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append(Size.ToString()); sb.Append(" "); sb.Append(flavor.ToString()); sb.Append(" "); sb.Append("Sailor Soda"); return(sb.ToString()); }
/// <summary> /// Overrides the ToString method to return the size and name of the drink /// </summary> /// <returns></returns> public override string ToString() { return(size.ToString() + " " + flavor.ToString() + " Sailor Soda"); }