Home » C# Programming » Inheritance

Which of the following statements is correct about the C#.NET program given below? namespace CuriousTabConsoleApplication { class Baseclass { int i; public Baseclass(int ii) { i = ii; Console.Write("Base "); } } class Derived : Baseclass { public Derived(int ii) : base(ii) { Console.Write("Derived "); } } class MyProgram { static void Main(string[ ] args) { Derived d = new Derived(10); } } }

Correct Answer: The program will output: Base Derived

← Previous Question Next Question→

More Questions from Inheritance

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion