摘要:
package edu.javase.buffer;abstract class abs { abstract void fun1();// 抽象方法 abstract void fun2(); public void method() { System.out.println("in abstract using"); } public void method2() { System.out.println("class abs method2 ..."); }}interface face1 { public void facefun1();}int 阅读全文
摘要:
#package edu.javase.buffer;interface faces { public void facefun1(); public int facefun2(); public String facefun3();}interface faces2 { public void facefun11(); public int facefun22(); public String facefun33();}class fatherz { public fatherz() { System.out.println("fatherz 构造器"); } publi 阅读全文
摘要:
#package edu.javase.buffer;interface faces { public void facefun1(); public int facefun2(); public String facefun3();}class demoface implements faces { @Override public void facefun1() { System.out.println("实现接口 facefun1"); } @Override public int facefun2() { System.out.println("实现接口 阅读全文
摘要:
.package edu.javase.buffer;class demo1 { public demo1() { System.out.println("fun1 constend"); } public demo1(int i) { System.out.println("fun1 int i constend:" + i); } // 重载(同类) public void fun1() { System.out.println("fun1"); } public void fun1(int i, String s) { Syst 阅读全文