53 lines
998 B
Java
53 lines
998 B
Java
/**
|
|
* A class representing an item in a fridge.
|
|
*/
|
|
public 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
|
|
|
|
}
|