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 is the difference between model and entity?

490


Can you explain renderbody and renderpage in mvc?

577


What is the use of the default route {resource}.axd/{*pathinfo} ?

551


what is scalar property?

607


Describe the gac in the .net framework.

572






sql related question (outer join, left, right etc) array vs hashtable CRL sqldatareader vs dataset what is WPF, WCF, compare to WinForms Webservices Asp.net MVC vs WebForms?

2959


What is the importance of NonActionAttribute?

607


Will the name change be reflected in any of the existing .net framework 2.0 apis, assemblies, or namespaces?

544


Which is the root namespace for fundamental types in .net framework?

563


Which version of .net framework is installed?

489


How large is the .net framework 3.0?

556


What is the use of viewmodel in mvc?

612


What are the 2 ways of adding constraints to a route?

548


What are the new enhancements done in default project template of asp.net mvc 4?

578


Will c# 3.0, vb.net 9.0, atlas, or linq be included in the .net framework 3.0?

519