Content copied from
http://www.codedigest.com/Articles/Framework/193_What_are_constructors_in_CSharp_-_A_Step_Ahead_Series.aspx
http://www.codedigest.com/Articles/Framework/193_What_are_constructors_in_CSharp_-_A_Step_Ahead_Series.aspx
Definition: In simple terms, Constructor is a special kind of method with class name as method name and gets executed when its (class) object is created.This article will give you a detailed explanation on C# constructors and its types. Now, when we look at the above definition in a broader sense, a constructor is a class method that gets automatically executed whenever class’s object is created or whenever class is initialized. | ||||||||
| ||||||||
Conclusion Constructor is one of the important concepts in object oriented world and one should know how it can be used for in different type of scenarios. Thus, this article is aimed to provide some detailed explanation about the same. |
No comments:
Post a Comment