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
Explain RenderBody and RenderPage in ASP.Net MVC?
What is the .net framework?
What does a viewmodel do?
How route table has been created in asp.net mvc?
Is it possible to create a custom filter?
What is main objective of asp.net mvc 4 or what is new in mvc4 ?
When using razor views, do you have to take any special steps to protect your asp.net mvc application from cross site scripting (xss) attacks?
Explain Keep method in Tempdata in ASP.Net MVC?
what is code first approach?
what is use of entitydatasource control?
Briefly describe the roles of clr in .net framework?
Explain bundle.config in mvc4?
What is stateless model?
how can you tell ef to have a different table or column name than that defined for the class?
Is the following route definition a valid route definition? {controller}{action}/{id}