Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. import java.util.Vector;
  2.  
  3. abstract class Figur
  4. {
  5.   abstract double getFlaeche();
  6. }
  7.  
  8. class Rechteck extends Figur
  9. {
  10.   private double a, b;
  11.  
  12.   public Rechteck( double a, double b )
  13.   {
  14.     this.a = a;
  15.     this.b = b;
  16.   }
  17.  
  18.   public double getFlaeche()
  19.   {
  20.     return a * b;
  21.   }
  22. }