//CircDemo3 //demonstrates Circle3 - multiple constructors //Andy Harris, 05/00 import java.awt.*; import java.applet.*; import Circle3; public class CircDemo3 extends Applet{ Circle3 myCirc; //create here, but do not add any values yet public void init(){ this.setLayout(new GridLayout(0,2)); //use the float constructor to create a circle radius 8 myCirc = new Circle3(8f); add (new Label("myCirc(8f): ")); add (new Label(String.valueOf(myCirc.radius))); myCirc = new Circle3(4); add (new Label("myCirc(4): ")); add (new Label(String.valueOf(myCirc.radius))); //try one with the blank parameter myCirc= new Circle3(); add (new Label("myCirc():")); add (new Label(String.valueOf(myCirc.radius))); } // end init } // end class