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
public class CartItem { private String product; private int quantity; private double price; } //constructor public CartItem()-the error is here. class, interface enum expected { }