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

What does mvvm mean?

554


Explain Keep method in Tempdata in ASP.Net MVC?

568


explain why t4 entity is important in entity framework?

565


What are actions in asp.net mvc?

576


What is an asynchronous controller in asp.net mvc?

547






What is Attribute Routing in ASP.Net MVC?

595


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?

705


How do you specify comments using razor syntax?

605


What is iobjectset? : Entity framework

589


what is code first approach?

588


Does Tempdata hold the data for other request in ASP.Net MVC?

543


Explain JSON Binding?

621


Briefly describe the roles of clr in .net framework?

546


What are ajax helpers in mvc?

522


What is attribute routing in mvc?

577