public class PeopleDemo
{
    public static void main(String[] args)
    {
        Student peter = new Student("Peter");
        Person  hans  = new Person("Hans");        
        Person  maria = new Student("Maria");
        
        System.out.println(peter);
        System.out.println(hans);
        System.out.println(maria + "\n");
        
        einTest(peter);
        einTest(hans);
        einTest(maria);
        
        System.out.println("\nProgram over");
    }

    public static void einTest(Object argument)
    {
        System.out.println("Object " + argument + " is an Object" + " :: " +
                           argument.getClass() );
    }
    
    public static void einTest(Person argument)
    {
        System.out.println("Object \"" + argument + "\" is a Person" + " :: " +
                           argument.getClass() );
    }
    
    public static void einTest(Student argument)
    {
        System.out.println("Object \"" + argument + "\" is a Student" + " :: " +
                           argument.getClass() );
    }
    
    
}