定义一个接口IPerson,封装一个方法:
void print()//输出人员有关信息

解决方案 »

  1.   


    interface IPerson{
        public void print();
    }
      

  2.   

    public interface IPerson {
        public void print();
    }
      

  3.   

    interfece IPerson(){
        void print();}
      

  4.   

    interface IPerson{
        public void print();
    }
      

  5.   

    interface IPerson{ 
        public void print(); 
    }
      

  6.   

    接口
    interface IPerson{
        public void print();
    }实现类
    public class Person implements IPerson{
        public void print(){
            System.out.println("print");
        }    public static void main(String[] args){
             IPerson p = new Person();
             p.print();
        }
    }
      

  7.   

    intertface Iperson{
    public void print();
    }
      

  8.   

    public interface IPerson {
        public void print();
    }
      

  9.   


    interface Iperson
    {
      public void print() ;
    }class Person implements Iperson
    {
      public void print()
      {
         System.out.println("GGGL") ;
      }
    }
      

  10.   


    interface IPerson{
        public void print();
    }可以满足你了
      

  11.   

    public interface IPerson {
        public void print();
    }