Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio
| Term
| Class
|
| Definition
| A class groups related variables and functions in object-oriented programming (OOP). A class defines a collection of encapsulated instance variables and methods—functions—, optionally including implementations of those types and a constructor and destructor. Properties contain the data exposed by the class. Behaviors are the functionality exposed as defined by public methods—member functions—and events. A class describes both the properties and behaviors of objects. A class is not an object; rather, it is used to instantiate an object. A class is like a template for defining new types.
A C# class is declared with the class keyword.
|
| See also
| Abstract class, Constructor, Destructor, Interface, Structure
|
| You may edit this definition to improve or extend it.
|