TestProgPerson

TestProgPerson - //Line 4 System.out.println("Line 5:...

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

View Full Document Right Arrow Icon
i public class TestProgPerson { public static void main(String[] args) { Person name = new Person(); //Line 1 Person emp = new Person("Donald", "Jackson"); //Line 2 System.out.println("Line 3: name: " + name); //Line 3 name.setName("Ashley", "Blair");
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: //Line 4 System.out.println("Line 5: name: " + name); //Line 5 System.out.println("Line 6: emp: " + emp); //Line 6 emp.setName("Sandy", "Smith"); //Line 7 System.out.println("Line 8: emp: " + emp); //Line 8 }//end main }...
View Full Document

This note was uploaded on 06/17/2011 for the course COMP 2301 taught by Professor Staff during the Spring '10 term at Kennesaw.

Ask a homework question - tutors are online