abstract class Shape{ public abstract int area(); } abstract class AbstractShape extends Shape{ } class MainClass extends AbstractShape{ public int area(){ return 0; } }