/**
   Example from Core Java by Horstmann and Cornell 
 */ 
public class PersonTest {
    public static void main(String[] args){
	// cannot instantiate a Person object but can declare Person variables
	Person[] people = new Person[2]; 

	people[0] = new Employee("Harry", 20000); 
	people[1] = new Student("Tom", "Computer Science"); 

	for( Person p : people ) 
	    System.out.println(p.getName() + ", " + p.getDescription()); 
    }
}
