hi
I am practicing this object programming and I am getting this error, class, interface, enum expected. what can i do to fix it and explain it to me. here is the codes
1 2 3 4 5 6 7 8 9 10 11 | public class CartItem { private String product; private int quantity; private double price; } //constructor public CartItem()-the error is here. class , interface enum expected { } |