Home / MCQ Bank / Computer
Computer Classes And Objects In C Sharp Difficulty: Medium

What will be the output of the following C# code? using System; public class BaseClass { public BaseClass() { Console.WriteLine("I am a base class"); } } public class ChildClass : BaseClass { public ChildClass() { Console.WriteLine ("I am a child class"); } static void Main() { ChildClass CC = new ChildClass(); } }

Select the correct option to test your answer:

More Computer Questions

Background of screen is known as In MS Excel, Conditional Formatting is in ______ tab? Which of these is an incorrect Statement? What will be the output of the following Java program? import java.text.*; import java.util.*; class Date_formatting { public static void main(String args[]) { Date date = new Date(); SimpleDateFormat sdf; sdf = new SimpleDateFormat("E MMM dd yyyy"); System.out.print(sdf.format(date)); } } Note: The program is executed at 3 hour 55 minutes and 4 sec on Monday, 15 July(24 hours time). If large number of items are stored in hash bucket, what happens to the internal structure?