Can Static Constructor be Overloaded?Justify it?

Answers were Sorted based on User's Feedback



Can Static Constructor be Overloaded?Justify it?..

Answer / uday

Static Constructors should not have any parameters.

So how can you overload?

So my answer is No, we cannot overload static constructor.

Is This Answer Correct ?    45 Yes 9 No

Can Static Constructor be Overloaded?Justify it?..

Answer / sid

You cannot overload static constructor.
Only one static constructor.

Is This Answer Correct ?    23 Yes 1 No

Can Static Constructor be Overloaded?Justify it?..

Answer / sagar

Its not possible to overload static constructor because
static constructor are parameterless constructor.

Is This Answer Correct ?    14 Yes 0 No

Can Static Constructor be Overloaded?Justify it?..

Answer / pooja soni

Static constructor is parameterless constructor so that its
is not possible to overload statis construtor.

Is This Answer Correct ?    11 Yes 1 No

Can Static Constructor be Overloaded?Justify it?..

Answer / p.kamaraju

No Boss,
We can not implement Overloading concept with Static
Constructor because it does not accept any parameters.

Is This Answer Correct ?    9 Yes 2 No

Can Static Constructor be Overloaded?Justify it?..

Answer / bunty

No

Is This Answer Correct ?    8 Yes 1 No

Can Static Constructor be Overloaded?Justify it?..

Answer / debayan

Static Constructor cannot be overloaded becoz any static
type member of a class is initialized automatically and
static members are initialized once and accesed many times.
So If already initialized it cannot be initialized again and
so static constructors cannot be overloaded

Is This Answer Correct ?    10 Yes 3 No

Can Static Constructor be Overloaded?Justify it?..

Answer / subhransu

No it is not possible because it never accept any parameter
and you will never get a scope to pass parameter

Is This Answer Correct ?    5 Yes 1 No

Can Static Constructor be Overloaded?Justify it?..

Answer / 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

Can Static Constructor be Overloaded?Justify it?..

Answer / nishant

No Way..it can not be overloaded as it won't accept any parameter.
In case you try to provide any parameter in the static constructor it will give you following error ...

Error : " a static constructor must be parameterless"

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net Framework Interview Questions

What is objectcontext? : Entity framework

0 Answers  


What is Dependency Injection in ASP.Net MVC

0 Answers   B-Ways TecnoSoft,


What is the use of web api ? Why web api needed, if you have already restful services using wcf ?

0 Answers  


What is side by side Execution ?

3 Answers   MEC, MMTS,


What is the mvc pattern (model view controller pattern)?

0 Answers  






How you deploy .NET assemblies

1 Answers  


What is the difference between Finalize and Dispose (Garbage collection)

1 Answers  


mention what are the various methods provided by the dataset object to generate xml?

0 Answers   Microsoft,


Define .NET architecture ?

3 Answers   TCS,


Can we add constraints to the route? If yes, explain how we can do it?

0 Answers  


mention in what all scenarios entity framework can be applicable?

0 Answers   Microsoft,


what are background threads? give ex?

3 Answers   CSC, Kanbay,


Categories