// 22.5HV2 Software Engineering II // Unit 4 Exercise 2 import java.io.*; public class Person { public Person(String first, String last, String s, int day, int month, int year) { name = new Name(first,last); sex = new String(s); dob = new Date(day,month,year); } public Person(Person pers) { name = pers.name; sex = pers.sex; dob = pers.dob; } public void display() { name.display(); System.out.println(sex); dob.display(); } protected Name name; protected String sex; protected Date dob; };