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