package InitializeAndCleanUp.part7;

import static net.mindview.util.Print.print;

/**
 * Created by chenyang on 2017/1/18.
 */

class Mug{
    Mug(int marker){
        print("Mug("+marker+")");
    }
    void f(int marker){
        print("f("+marker+")");
    }
}
public class Mugs {
    Mug mug1;
    Mug mug2;
    {
        mug1=new Mug(1);
        mug2=new Mug(2);
        print("mug1 & mug2 initialized");
    }
    Mugs(){
        print("Mugs()");
    }
    Mugs(int i){
        print("Mugs(int)");
    }

    public static void main(String[] args) {
        print("Inside main()");
        new Mugs();
        print("new Mugs() completed");
        new Mugs(1);
        print("new Mugs(1) completed");
    }
}

@@ -80,16 +80,36 @@
 t;%0A%0A/**%0A
+ * %E9%9D%9E%E9%9D%99%E6%80%81%E6%88%90%E5%91%98%E5%88%9D%E5%A7%8B%E5%8C%96%E5%9C%A8%E6%9E%84%E9%80%A0%E5%99%A8%E4%B9%8B%E5%89%8D%E5%AE%8C%E6%88%90%0A
  * Creat

update code