What is static and use of it?
Answer / Priyal Gupta
In C#, the 'static' keyword is used to declare variables or methods that are shared among all instances of a class. Static members can be accessed without creating an instance of the class and are typically used for properties that should not vary between objects, such as constants or utility functions.
| Is This Answer Correct ? | 0 Yes | 0 No |
Can int be null c#?
How many types of constructors are there?
How do you generate documentation from the C# file commented properly with a command-line compiler?
How many types of serialization are there in c#?
Are objects passed by reference in c#?
Does c# do array bounds checking?
Explain async and await?
What are the 3 logical operators?
What is a string? What are the properties of a string class?
How do you restrict the type which can be used in custom generic?
How do I format a string in c#?
Is exe is machine dependent?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)