父类

public class Father {

    public Father() {

        System.out.println("父类构造PUBLIC father");

    }

    static {

        System.out.println("父类静态代码块static father");
    }
    {

        System.out.println("父类普通代码块CLASS father");

    }

}
View Code

相关文章: