Files
Testate/WS2526/Testat 2a/Yoghurt.java
T

21 lines
433 B
Java

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);
}
@Override
public String toString() {
return "Yoghurt: " + super.toString();
}
}