// Body4.java:  dubious constructor chaining

class Body4 {

   static long nextID = 0;

   long idNum;
   String nameFor;
   Body4 orbits;

   Body4 () {
      idNum = nextID++;
   }

   Body4 (String n) {
      this (n, null);
   }

   Body4 (String n, Body4 o) {
      this();
      nameFor = n;
      orbits = o;
   }

   public static void main (final String[] args)  {

      final Body4 sun   = new Body4 ("Sol");
      final Body4 earth = new Body4 ("Earth", sun);

   }
}