Structure the code to respect MVC design pattern.
[Persons_Comparator.git] / src / WeightView.java
1 public class WeightView {
2 private Weight weightObj;
3
4 WeightView(Weight weightObj) {
5 setWeightObj(weightObj);
6 }
7
8 public Weight getWeightObj() {
9 return weightObj;
10 }
11
12 public void setWeightObj(Weight weightObj) {
13 this.weightObj = weightObj;
14 }
15 }