I am trying to create a constructor that takes a field as a parameter, then puts it in a field that is stored in a superclass. Here is the code I am using
pu
public crisps(String flavour, int quantity) { super(flavour); this.quantity = quantity; }
This should work as see Docs