12
Reply

Can you overload static constructor?

Abhinav Golwalkar

Abhinav Golwalkar

Dec 18, 2013
3.9k
0

    No, Static constructor can not have parameters.

    Anil Kumar Murmu
    January 15, 2016
    0

    No

    Anil Kumar Murmu
    January 15, 2016
    0

    No

    Rahul Prajapat
    June 01, 2015
    0

    NO

    ragini varshney
    November 28, 2014
    0

    yes but static constructor can't access directly

    Gokul Rathod
    November 25, 2014
    0

    No, because you cannot invoke a static constructor explicitly, it is invoked implicitly by the run time before the objects are instantiated. Also, you cannot pass any parameters to a static constructor(its always parameter less) therefore it cannot be overloaded.

    Rama
    August 15, 2014
    0

    No, You can't overload static constructor because.So you can not pass parameters in static constructor at run time that's why you can't overload it.

    prahlad sathwara
    June 07, 2014
    0

    No

    Ashish
    April 22, 2014
    0

    No, we can not overload static constructor.

    Mahesh Alle
    December 27, 2013
    0

    we can not overload static constructor because we can define static construtor only once within the call without parameters

    Ashish Singh
    December 22, 2013
    0

    No, You can't overload static constructor because you have no control on which constructor will be call at run time.So you can not pass parameters in static constructor that's why you can't overload it.

    Sandeep Singh Shekhawat
    December 18, 2013
    0

    No you can't overload it; a static constructor is useful for initializing any static fields associated with a type

    Rajesh Singh
    December 18, 2013
    0