Structure the code to respect MVC design pattern.
[Persons_Comparator.git] / src / FirstnameView.java
diff --git a/src/FirstnameView.java b/src/FirstnameView.java
new file mode 100644 (file)
index 0000000..18323cf
--- /dev/null
@@ -0,0 +1,15 @@
+public class FirstnameView {
+    private Firstname firstnameObj;
+
+    FirstnameView(Firstname firstnameObj) {
+        setFirstnameObj(firstnameObj);
+    }
+
+    public Firstname getFirstnameObj() {
+        return firstnameObj;
+    }
+
+    public void setFirstnameObj(Firstname firstnameObj) {
+        this.firstnameObj = firstnameObj;
+    }
+}