adspace


Why do we use static methods in c#?

Answer Posted / Sangeeta Singh

Static methods in C# are used to provide functionality that doesn't require an instance of the class. They can be called directly from their containing class and don't have access to non-static class members.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which namespaces are necessary to create a localized application?

1143


What is an abstract class c#?

969


What is expression tree in c#?

998


How to assign Null value to Var?

1065


How do you inherit a class into other class in c#?

995


Why can't we use a static class instead of singleton?

956