class Test2_Extends {
public static void main(String[] args) {
Zi z = new Zi();
}
}
class Fu {
static {
System.out.println("静态代码块Fu");
}
{
System.out.println("构造代码块Fu");
}
public Fu() {
System.out.println("构造方法Fu");
}
}
class Zi extends Fu {
static {
System.out.println("静态代码块Zi");
}
{
System.out.println("构造代码块Zi");
}
public Zi() {
System.out.println("构造方法Zi");
}
}
class Test2_Extends
{
public static void main(String[] paramArrayOfString)
{
Zi localZi = new Zi();
}
}
class Fu
{
public Fu()
{
System.out.println("构造代码块Fu");
System.out.println("构造方法Fu");
}
static
{
System.out.println("静态代码块Fu");
}
}
class Zi extends Fu
{
public Zi()
{
System.out.println("构造代码块Zi");
System.out.println("构造方法Zi");
}
static
{
System.out.println("静态代码块Zi");
}
}
690.29 KB, 下载次数: 199
java反编译工具
其实我是黑马 发表于 2016-10-8 00:08
大山大哥是哪个讲师?
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) | 黑马程序员IT技术论坛 X3.2 |