Source of Cookie.java


  1: //: c05:dessert:Cookie.java
  2: // From 'Thinking in Java, 2nd ed.' by Bruce Eckel
  3: // www.BruceEckel.com. See copyright notice in CopyRight.txt.
  4: // Creates a library.
  5: 
  6: package c05.dessert;
  7: 
  8: public class Cookie {
  9:   public Cookie() { 
 10:    System.out.println("Cookie constructor"); 
 11:   }
 12:   void bite() { System.out.println("bite"); }
 13: } ///:~
 14: