/**
 * This program demonstrates the use of this in a constructor
 * to call a different constructor of the same class with a
 * different signature.
 */

public class ShowConstructorThis {
   public static void main(String[] args) {
      System.out.println(new Foo().lunch);
   }  
}

class Foo {
   String lunch;
   
   Foo() {
      this("turkey");
   }
   
   Foo(String s) {
      lunch = s + " sandwich";
   }
}