public class Demo { public static void main(String[] args) { Circle a = new Circle("red", 4.0); // We can call the toString() method // inside a Circle object ALSO System.out.println( a.toString( ) ); System.out.println( a ); // Same ! } }