0
kicks
Constructors in C#
This article covers the basic concepts of constructors in C# and discusses constructor overloading, types of constructors, and the behavior of constructors in inheritance, with some sample programs. A constructor is used to provide initialization code that gets executed every time the class is instantiated. Constructors cannot be "virtual". A good understanding of constructors is a prerequisite for all class designers.