class super (   public int I = 0;   public super (...
单选题

class super (   public int I = 0;   public super (string text) (   I = 1   )   )     public class sub extends super (   public sub (string text) (   i= 2   )   public static void main (straing args) (  sub sub = new sub (“Hello”);   system.out. PrintIn(sub.i);  )   )   What is the result?()

发布日期:2020-04-10

A.Compilation will fail.

B.Compilation will succeed and the program will print “0”

C.Compilation will succeed and the program will print “1”

D.Compilation will succeed and the program will print “2”

热门试题

热门资讯

    暂无相关推荐~

分享给好友

分享到朋友圈

取消

使用浏览器的分享功能,把这篇文章分享出去

确定