This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.coffeedriven; | |
import java.math.BigDecimal; | |
public class Item { | |
String name; | |
int weight; | |
BigDecimal price; | |
public Item(String name, int weight, BigDecimal price) { | |
this.name = name; | |
this.weight = weight; | |
this.price = price; | |
} | |
public String getName() { | |
return name; | |
} | |
public int getWeight() { | |
return weight; | |
} | |
public BigDecimal getPrice() { | |
return price; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment