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
What is the difference between model and entity?
Can you explain renderbody and renderpage in mvc?
What is the use of the default route {resource}.axd/{*pathinfo} ?
what is scalar property?
Describe the gac in the .net framework.
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?
What is the importance of NonActionAttribute?
Will the name change be reflected in any of the existing .net framework 2.0 apis, assemblies, or namespaces?
Which is the root namespace for fundamental types in .net framework?
Which version of .net framework is installed?
How large is the .net framework 3.0?
What is the use of viewmodel in mvc?
What are the 2 ways of adding constraints to a route?
What are the new enhancements done in default project template of asp.net mvc 4?
Will c# 3.0, vb.net 9.0, atlas, or linq be included in the .net framework 3.0?