1 package com.foo; 2 3 public class RectangularWindow implements IWindow { 4 5 double length; 6 double width; 7 RectangularWindow(double length, double width)8 public RectangularWindow(double length, double width) { 9 this.length = length; 10 this.width = width; 11 } 12 getWindowArea()13 public double getWindowArea() { 14 return length * width; 15 } 16 }