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
When using aspx view engine, to have a consistent look and feel, across all pages of the application, we can make use of asp.net master pages. What is asp.net master pages equivalent, when using razor views?
What is renderbody?
What is mapping in entity framework? : Entity framework
Why to use “{resource}.axd/{*pathinfo}” in routing in mvc?
How does the .net framework 3.0 relate to the .net framework 2.0?
Briefly describe the roles of clr in .net framework?
What is domain class model?
Explain the tools used for unit testing in ASP.Net MVC
Is the following route definition a valid route definition? {controller}{action}/{id}
What is filters in web api?
What is the significance of nonactionattribute?
What are Code Blocks in Views?
How does .net framework works?
What are the differences between Partial View and Display Template and Edit Templates in ASP.Net MVC?
What is main objective of asp.net mvc 4 or what is new in mvc4 ?