Unit 9 Summative Review I
Unit 9 Summative Review I
public Person(){
myAge = 0;
}
public Person(int x){
myAge = x;
}
public Employee() {
super();
salary = 0.0;
vacationDays = 0;
}
3) Write the toString() and equals() method for an Employee. Format the String nicely, but it can be
done however you would like.
Write a code segment that holds all 4 people in a single array, and then uses a loop to print off the
saySomething method for each of the people.