/** * A class that represents a person */ public class Person { String name; int age; /** * the default constructor */ public Person() { name = ""; age = 0; } /** * the descriptive constructor * @param name the new name for the person * @param age the new age for the person */ public Person(String name, int age) { this.name = name; this.age = age; } /** * the method that is called implicitly when an object of this class is * concatenated with a String * @return the description of this person */ public String toString() { return "Person with name: " + name + " and age: " + age; } }