001package basics.objectclass;
002// A static class
003public class Main2 {
004        private Main2() {}
005        static public void main (String[] args) {
006                //stdlib.Trace.graphvizShowSteps (true); stdlib.Trace.run ();
007                System.out.println(new Circle2 (1));
008        }
009}
010// An object class
011final class Circle2 extends Object {
012        int radius;
013        public Circle2(int radius) { this.radius = radius; }
014        public String toString() { return "Circle(" + radius + ")"; }
015}