Files
Testate/WS2425/Testat 2a/FridgeItem.java
T
2025-07-21 16:03:34 +02:00

54 lines
958 B
Java

public abstract class FridgeItem { // TODO: change
/**
* The weight of the item.
*/
// TODO: add variable
/**
* The name of the item.
*/
// TODO: add variable
/**
* The color of the item.
*/
// TODO: add variable
/**
* Creates a fridge item with the specified weight, name and color.
*
* @param weight The weight of the item.
* @param name The name of the item.
* @param color The color of the item.
*/
public FridgeItem(double weight, String name, String color) {
// TODO: assign member variables
}
/**
* Returns the name of the item.
*
* @return The name of the item.
*/
public String getName() {
return name;
}
/**
* Returns the color of the item.
*
* @return The color of the item.
*/
public String getColor() {
return color;
}
// TODO: toString
}