public class Yoghurt extends FridgeItem { /** * Creates a new yoghurt with the weight, name and color. * * @param weight The weight. * @param name The name. * @param color The color. */ public Yoghurt(double weight, String name, String color) { super(weight, name, color); } /** * Returns a string representation of the yoghurt. * * @return A string representation of the yoghurt. */ @Override public String toString() { return "Yoghurt: " + super.toString(); } }