✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
class Box {
private int weight = 0;
public int getWeight () {
return weight;
}
void setWeight (int weight) {
weight = weight;
}
}
(Java)