public class Tool { private String name; private int quantity; private double price; public Tool(String n,int q,double p) {name = n; quantity = q; price = p; } public double getPrice() {return price; } public String getName() {return name; } public double getQuantity() {return quantity; } public void changePrice(double p) {price = price + p; } public void sellSome(int n) {quantity -= n; } public void addToStock(int n) {quantity += n; } }