C# Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 2257 Page Views: 

What is static class and what is use of this?



Posted By: Avi Date: 3 July 2010 01:54:06 PM
 Answer:

Static class we define when we do not want to create a object of class, all methods of static class should be static. Static class methods and data are specific to class only and not associated to objects.


Posted By: eTechPlanet


Date: 3 July 2010 01:54:06 PM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image EPF2Hb
Related Questions
C# : How do you declare destructor in c#?

How do you declare destructor in c#?

class T { ~T() { /*destructor code*/}}
Category: C# Date: 10/15/2010 8:23:46 AM
C# : What will be the result of this code Console.WriteLine(3/4 == 3.0/4.0);

What will be the result of this code Console.WriteLine(3/4 == 3.0/4.0);

answer is 'false'
Category: C# Date: 10/15/2010 7:40:47 AM
C# : What will be the result of the code Console.Write(String.Format(“{0:dd MMM yyyy}”, new DateTime(2009,12,23))?
C# : What will contain list t after following code?
List<int> t = new List<int>() {1,2,3};
t.ForEach((i) => i = i *2);
C# : How do you select even numbers using Where extension method on List<int>?

How do you select even numbers using Where extension method on List?

data.Where( I => I %2 == 0);
Category: C# Date: 10/15/2010 4:53:47 AM