001package basics.composition; 002import java.util.Random; 003final class Person { 004 static private Random random = new Random(); 005 final private String name; 006 public Person() { name = Integer.toString(random.nextInt()); } 007 //public Person(String name) { name = name.clone(); } 008 public String toString() { return "Person(" + name + ")"; }; 009}