Ch6driver - System.out.println(profile2);

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
public class Ch6driver { public static void main (String args []) { Education profile1 = new Education("Washington", "MS" , "PLS", "Oxford"); Employee firstPres = new Employee("George", "Washington", 2754, profile1); Education profile2 = new Education("Washington", "AA", "CPS", "AACC"); Employee stu = new Employee ("George", "Washington", 8888, profile2); System.out.println(profile1);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: System.out.println(profile2); System.out.println("\nfirstPres: " + firstPres); System.out.println("\nnstu: " + stu); System.out.println("\nprofile1: " + profile1); System.out.println("\nprofile2: " + profile2); if(contractEmp.equals(firstPres)) System.out.println("Objects are the same"); else System.out.println("Objects are no the same"); } }...
View Full Document

This note was uploaded on 07/28/2009 for the course CSI 161 taught by Professor Deborahpenna during the Spring '09 term at Anne Arundel CC.

Ask a homework question - tutors are online