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 use of the default route {resource}.axd/{*pathinfo} ?
how do you query in entity model when the result has a join from from different database other than the entity model?
What is work of clr?
What is entity graph? : Entity framework
what is code first approach?
Is razor a server side?
Possible ways to prevent xss attacks on mvc application?
Is .net framework dead?
Can I use razor code in javascript in asp.net mvc?
What is layout in mvc?
What are actions in mvc?
How we can call a javascript function on the change of a dropdown list in mvc?
Can I remove .net framework?
What is tempdata?
What operating systems will the .net framework 3.0 be available for?