nerdexam
GIAC

GSSP-.NET · Question #341

(Topic 3) 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 correct answer is A. gClass ss=new gClass(j); C. gClass ss=new gClass(200). See the full explanation below for the reasoning.

Question

  • (Topic 3)

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 { 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 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

(27 responses)
  • A
    81% (22)
  • B
    11% (3)
  • D
    7% (2)

Community Discussion

No community discussion yet for this question.

Full GSSP-.NET Practice