The superclass provides only the method name and signature.
The method body is deferred to the subclasses.
abstractclass Shape{
publicabstractint area();
}
class Rectangle extends Shape{
int width = 10;
int height = 10;
publicint area(){
return width*height;
}
}