- Back to Home »
- C#.NET »
- C#.NET Class
Posted by :
Sudhir Chekuri
Thursday, 31 December 2015
- Class is a blue print.
- It is a collection of methods and member functions.
- In Object oriented programming every line of code should be in class.
- It is a reference type.
- Mandatory to use the "new" keyword for creating object.
- Class can contain variable declarations as well as initialize them at the time of declaration only.
class classname
{
body
}