PROGRAM JAVA PYTHAGORAS package polymorphismtoy; /** * * @author dani.prs */ public class PolymorphismToy { static void test(){ RectangleToy theRectangle = new RectangleToy(100,200); SquareToy theSquare = new SquareToy(100); CircleToy theCircle = new CircleToy(100); printGeometry(theRectangle); printGeometry(theSquare); printGeometry(theCircle); } public static void main(String[] args) { test(); } static void printGeometry(GeometryToy theG){ System.out.println("======================================="); System.out.println("Geomet...
Member of The Order