2a8c8127d7cb17f63cbe5aa8e6a98a26209a3f24
8 public int getWeight() {
12 public void setWeight(int weight
) {
13 if (validateWeight(weight
)) {
16 throw new IllegalArgumentException("Weight cannot be negative or zero");
20 private boolean validateWeight(int weight
) {