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 wh
All (or almost) all programming languages have a notion of a datatype. A datatype can be things like: Integers, doubles, booleans etc.
C# and other languages allow us to define our own "custom" datatypes. That's where classes come in. Custom datatypes in OO languages are called classes and when we define such classes it is the type definition or type.
Take a look at this Wikipedia page for more information