What will be output of below code?

public class MyClass
{

private MyClass()
{

}


}

class Program:MyClass
{
static void Main(string[] args)
{

Console.WriteLine("Hello");
Console.ReadLine();
}

}

 Posted by Rajeshatkiit on 1/9/2016 | Category: C# Interview questions | Views: 1247 | Points: 40
Select from following answers:
  1. Hello
  2. Runtime error
  3. Compile time error
  4. None of the above
  5. All Above

Show Correct Answer


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response