Home / MCQ Bank / Computer
Computer Classes And Objects In C Sharp

What will be the Correct statement in the following C# code? class baseclass { int a; public baseclass(int a1) { a = a1; console.writeline(" a "); } class derivedclass : baseclass { public derivedclass (int a1) : base(a1) { console.writeline(" b "); } } class program { static void main(string[] args) { derivedclass d = new derivedclass(20); } } }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • a b

Related Computer Questions

What is the purpose of the continue statement in loops? What will be the output of the following R code snippet? > paste("a", "b", sep = ":") What is the prime task of the stable marriage problem? The inner frame within a top-level window can be referred as Identify the outline property that specifies the amount of area extended beyond the border box.