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


Please Help Members By Posting Answers For Below Questions

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?

753


What is renderbody?

762


What is mapping in entity framework? : Entity framework

704


Why to use “{resource}.axd/{*pathinfo}” in routing in mvc?

767


How does the .net framework 3.0 relate to the .net framework 2.0?

781


Briefly describe the roles of clr in .net framework?

734


What is domain class model?

712


Explain the tools used for unit testing in ASP.Net MVC

833


Is the following route definition a valid route definition? {controller}{action}/{id}

989


What is filters in web api?

707


What is the significance of nonactionattribute?

750


What are Code Blocks in Views?

850


How does .net framework works?

745


What are the differences between Partial View and Display Template and Edit Templates in ASP.Net MVC?

798


What is main objective of asp.net mvc 4 or what is new in mvc4 ?

814