• 2022-06-08 问题

    public class enclosingone (    public class insideone{}   )   public class inertest(   public static void main (stringargs)(   enclosingone eo= new enclosingone ();    //insert code here  )  )   Which statement at line 7 constructs an instance of the inner class?() A:  InsideOnew ei= eo.new InsideOn(); B:  Eo.InsideOne ei = eo.new InsideOne(); C:  InsideOne ei = EnclosingOne.new InsideOne(); D:  EnclosingOne.InsideOne ei = eo.new InsideOne();

    public class enclosingone (    public class insideone{}   )   public class inertest(   public static void main (stringargs)(   enclosingone eo= new enclosingone ();    //insert code here  )  )   Which statement at line 7 constructs an instance of the inner class?() A:  InsideOnew ei= eo.new InsideOn(); B:  Eo.InsideOne ei = eo.new InsideOne(); C:  InsideOne ei = EnclosingOne.new InsideOne(); D:  EnclosingOne.InsideOne ei = eo.new InsideOne();

  • 1