class Program
{
static void Main(string[] args)
{
Console.WriteLine(clsNewStatic.count);
clsNewStatic.count = 20;
Console.WriteLine(clsNewStatic.count);
clsNewStatic t = new clsNewStatic();
Console.WriteLine(clsNewStatic.count);
}
}

public class clsNewStatic
{
public static int count = 10;
}

 Posted by Santosh.impossible on 1/19/2011 | Category: C# Interview questions | Views: 9004 | Points: 40
Select from following answers:
  1. 10 20 20
  2. 10 10 10
  3. 20 20 20
  4. 20 20 10
  5. All Above

Show Correct Answer


Source: Interview | Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response