nerdexam
GIAC

GSSP-NET · Question #352

Allen works as a Software Developer for ABC Inc. The company uses Visual Studio.NET as its application development platform. He creates an application using the .NET Framework.. He writes the…

The correct answer is A. gClass ss=new gClass(j); C. gClass ss=new gClass(200). See the full explanation below for the reasoning.

Question

Allen works as a Software Developer for ABC Inc. The company uses Visual Studio.NET as its application development platform. He creates an application using the .NET Framework.. He writes the following code segment in the application:

01 class gClass 02 { GIAC GSSP-.NET Exam 03 public gClass(int k) 04 { 05 //Write code here 06 } 07 } 08 public class gSub : gClass 09 { 10 public static void Main(String[] argv) 11 { 12 gSub gs=new gSub(20); 13 } 14 gSub(int j):base(j) 15 { 16 //Write Code here 17 } 18 gSub(string st, int j):this(j) 19 { 20 gClass ss=new gClass(); 21 } 22 } When you execute the above code segment, you get an error at line 20. Which of the following code segments will he place at line 20 to execute the code successfully? Each correct answer represents a complete solution. Choose all that apply.

Options

  • AgClass ss=new gClass(j);
  • Bbase();
  • CgClass ss=new gClass(200);
  • DgSub gg=new gSub();

How the community answered

(35 responses)
  • A
    83% (29)
  • B
    6% (2)
  • D
    11% (4)

Community Discussion

No community discussion yet for this question.

Full GSSP-NET Practice