/*
 * Test.java
 *
 * Created on December 4, 2002
 */

package collections.getclass;

/**
 * Demonstrates that using instanceof in a class's equals method
 * can cause problems.
 * @author  Thomas Rowland
 */
public class Test {

  public static void main(String[] args) {
    Parent parent = new Parent();
    Child child = new Child();

    System.out.println(parent.equals(child));
    System.out.println(child.equals(parent));
  }

}