Can Static Constructor be Overloaded?Justify it?
Answer Posted / sreegeetha
No, Static constructors cannot be overloaded it is used to
initialize static data....
example:
public class bus
{
static bus()
{
console.writeline("involked");
}
public static void my()
{
console.writeline("haii");
}
main()
{
bus.my();
}
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How to enable Attribute Routing?
What are the advantages of mvc over asp.net?
What are the components required to create a route in mvc?
In Server how to check whether model has error or not in ASP.Net MVC
What is difference between viewbag and viewdata and tempdata?
Where is tempdata stored?
What is a model in programming?
What are child actions in ASP.Net MVC?
Where are the routing rules defined in an asp.net mvc application?
What are the 2 popular asp.net mvc view engines?
What is managed extensibility framework?
Mention what is the difference between “ActionResult” and “ViewResult” ?
What is the .net framework?
What are the options can be configured in AJAX helpers?
What “beforFilter()”,“beforeRender” and “afterFilter” functions do in Controller?