Data hosted with ♥ by
Pastebin.com
-
Download Raw
-
See Original
import
java.util.Vector
;
abstract
class
Figur
{
abstract
double
getFlaeche
(
)
;
}
class
Rechteck
extends
Figur
{
private
double
a, b
;
public
Rechteck
(
double
a,
double
b
)
{
this
.
a
=
a
;
this
.
b
=
b
;
}
public
double
getFlaeche
(
)
{
return
a
*
b
;
}
}