/** * A simple model of a person * @author CSC 142 */ public class Person { // a person is defined by a name and an age private String name; private int age; /** * Creates a person given a name and an age * @param name the name of the person * @param age the age of the person */ public Person(String name, int age) { this.name = name; this.age = age; } /** * Prints the name and age of the person */ public void speak() { System.out.println("name = " + name + ", age = " + age); } }