hc学习平台

 找回密码
 立即注册
搜索
热搜: 活动 交友 javakc
 › zsl520 › 日志

Given  the  folowing  classes  which  of  the  following  will  compile  without  error?  

2022-08-17 11:48:07 查看(148) 回复(0)

interface  IFace{  }  
class  CFace  implements  IFace{  }  
class  Base{  }  
public  class  ObRef  extends  Base{  
    public  static  void  main(String  argv[  ]){  
        ObRef  ob  =  new  ObRef(  );    
        Base  b  =  new  Base(  );  
        Object  o1  =  new  Object(  );  
        IFace  o2  =  new  CFace(  );  
    }  
}
A、b=ob;
B、o1=b;
C、ob=b;
D、o1=o2;
ABD

评论 (0 个评论)

facelist

全部作者的其他最新日志



站点统计|举报|Archiver|手机版|小黑屋|Comsenz Inc.

GMT+8, , Processed in 0.195171 second(s), 9 queries .

Powered by javakc! X1.0

© 2004-2014 javakc

f1208.com 备案号:京ICP备14030918号-1

返回顶部