#
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( " 实现接口 facefun2 " ); return 0 ; } @Override public String facefun3() { System. out .println( " 实现接口 facefun3 " ); return null ; }} public class demointerface { public static void main(String[] args) { demoface dd = new demoface(); dd.facefun1(); dd.facefun2(); dd.facefun3(); }}
#
##
##