What is the use of static in c#?



What is the use of static in c#?..

Answer / Chandra Shekhar

In C#, the keyword 'static' can be used to create a static member or method. Static members and methods belong to the class itself rather than any specific instance of the class. They are shared across all instances and do not require an object to be instantiated.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Between windows authentication and sql server authentication, which one is trusted and which one is untrusted?

1 Answers  


What is the difference between string keyword and system.string class?

1 Answers  


When was c# created?

1 Answers  


write code for Factorial?

6 Answers   Tech Mahindra,


Explain attributes in c#?

1 Answers  


What?s different about switch statements in C#?

2 Answers  


What is args c#?

1 Answers  


What are the types of attributes in c#?

1 Answers  


What is the default value of object in c#?

1 Answers  


What's the implicit name of the parameter that gets passed into the set method/property of a class?

1 Answers  


What is the solution if you need to manipulate sets of items?

1 Answers  


What is an example of delegation?

1 Answers  


Categories