Lalit Raghav
what is virtual constructor?
By Lalit Raghav in C# on Nov 02 2016
  • Sujeet Singh
    May, 2017 29

    no, a class cannot have a virtual constructor.It doesn't make sense to have a virtual constructor. The order in which objects are constructed in C# is by constructing derived classes first, so the derived constructor is always called since the class you want to call is well known at the time of construction.

    • 3
  • Vinay K
    Mar, 2017 17

    Constructors cannot be virtual. Declaring a constructor as a virtual function is a syntax error.

    • 1
  • Vinay K
    Mar, 2017 17

    Constructors cannot be virtual. Declaring a constructor as a virtual function is a syntax error.

    • 1
  • sushil kumar
    Jul, 2017 20

    c# does contains virtual constructor.

    • 0
  • Vinay K
    Mar, 2017 17

    Constructors cannot be virtual. Declaring a constructor as a virtual function is a syntax error.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS