edu.gatech.oad.antlab.person
Class Person2

java.lang.Object
  extended by edu.gatech.oad.antlab.person.Person2

public class Person2
extends java.lang.Object

A simple class for person 2 returns their name and a modified string

Version:
1.1
Author:
Bob

Constructor Summary
Person2(java.lang.String pname)
          The constructor, takes in the persons name
 
Method Summary
 java.lang.String toString(java.lang.String input)
          Return a string rep of this object that varies with an input string
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Person2

public Person2(java.lang.String pname)
The constructor, takes in the persons name

Parameters:
pname - the person's real name
Method Detail

toString

public java.lang.String toString(java.lang.String input)
Return a string rep of this object that varies with an input string

Parameters:
input - the varying string
Returns:
the string representing the object