- class Fu
- {
- public int a;
- public int b;
- public void Fu(){
- System.out.println("a"+a);
- System.out.println("b*****"+b);
- }
- }
- class Zi1 extends Fu
- {
- public int a = 10;
- public int b = 12;
- public void Zi1(){
- System.out.println("a------"+a);
- System.out.println(" b------"+b);
- }
- public static void main(String [] args){
- new Zi1();
- Zi1.Zi1();
-
- }
- }
复制代码 代码如下:
|