- General class: Class is a collection of fields, properties, methods and events, where a method is a collection of statements and an event is an action on the object.
- Static class: Static classes are loaded automatically by the .NET Framework common language runtime (CLR) when the program or namespace containing the class is loaded.
- Sealed class: A sealed class cannot be inherited.
- Partial class: With the partial class it is possible to split the definition of a class or a struct, or an interface over two or more source files. Each source file contains a section of the class definition, and all parts are combined when the application is compiled.
- Abstract class: A class with abstract method (method without body is called abstract method) is called abstract class.
- Generic class: Generic classes encapsulate operations that are not specific to a particular data type.
Types of classes
Subscribe to:
Post Comments
(
Atom
)
0 comments :
Post a Comment