A class is a blueprint, that defines the attributes and behaviors of the objects, that are created as instances of the class.
Classes are declared by using the keyword class followed by the class name and a set of class members surrounded by curly braces. Every class has a constructor, which is called automatically any time an instance of a class is created. The purpose of constructors is to initialize class members when an instance of the class is created. Continue reading “Classes in C#.Net”