public class Store {
//instance fields
String productType;
int inventoryCount;
double inventoryPrice;
//constructor method
public Store(String product,int count,double price) {
productType = product;
inventoryCount = count;
inventoryPrice = price;
}
//main method
public static void main(String[] args) {
Store cookieShop = new Store("cookies",12,3.75);
System.out.println("my cookie shop menu " + cookieShop.product);
}
}
причина, по которой эта ошибка постоянно отображается?
Store.java:16: error: cannot find symbol
System.out.println("my cookie shop menu " + cookieShop.product);
^
symbol: variable product
location: variable cookieShop of type Store
1 error