package mianxiangduixiang;
public class gouZhaoOrExtend {
public static void main(String[] args) {
// TODO Auto-generated method stub
Zi zi = new Zi();
Zi zi = new Zi(9);
}
}
class Fu{
int num ;
Fu(){
num=10;
System.out.println("A fu run ");
}
Fu(int x){
System.out.println("B fu run..."+x);
}
}
class Zi extends Fu{
int num ;
Zi(){
System.out.println("C zi run.."+num);
}
Zi(int x){
super();
System.out.println("D zi run .."+x);
}
}
|
|