public boolean acquista(int q) { if (q < super.getQuantità()) { super.setQuantità(super.getQuantità() - q); return true; } else return false; }