class AbstractDemo { public static void main(String args[]){ AbstractShape s; s = new NewCircle(1); s.printDetails(); s = new NewRectangle(20, 10); s.printDetails(); } }