public class CheckInterface
{
  public static void main(String[] args)
  {
    Rect6 r = new Rect6(1,2,3,4);
    Circ6 c = new Circ6(1,2,3);

    if (r instanceof Cloneable)        // checking is done here
      System.out.println("Rect6 implements Cloneable");
    else
      System.out.println("Rect6 does not implement Cloneable");

    if (c instanceof Cloneable)        // checking is done here
      System.out.println("Circ6 implements Cloneable");
    else
      System.out.println("Circ6 does not implement Cloneable");
  }
}
