What is the difference between a class and a datatype?
.net, c#, class, oop, types
Solution
C# is a strongly typed language; therefore every variable and object must have a declared type.
A data type can be described as being either:
A built-in data type, such as an int or char, or
A user-defined data type, such as a class or interface.
Data types can also be defined as being either:
Value Types (C# Reference), which store values, or
Reference Types (C# Reference), which store references to the actual data.
** Class is a user define data type. **
Problem
I have heard the following statement: We can say class is a datatype or a datatype is one type of class. Can anyone explain to me what exactly this means?