Person - Creates a person with age and location-public...

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

View Full Document Right Arrow Icon
//******************************************************************** // Author: Lewis and Loftus // // Solution to Programming Project 7.5 //******************************************************************** / public class Person { private int age; private String location; //------------------------------------------------------------------
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: // Creates a person with age and location //------------------------------------------------------------------public Person(int personAge, String personLocation) { age = personAge; location = personLocation; } public String toString() { return "Age: " + age + "\nLocation: " + location; } }...
View Full Document

This note was uploaded on 05/17/2011 for the course COP 3530 taught by Professor Davis during the Spring '08 term at University of Florida.

Ask a homework question - tutors are online