/* This is an example of a class which implements an interface */
/*  but does not provide all of the necessary methods.         */
/* When this class is compiled, it should produce an error.    */

/* After you have compiled it and received the error message,  */
/* you should edit the source, add the missing method, and     */
/* add a "main" method so that you can execute it.             */

public class Rectp1 implements Polygon {

// class instance fields
  int width;
  int height;

  public Rectp1(int x, int y) {
    width = x;
    height = y;
  }

  public int area() {
    return width * height;
  }

}
