What is the difference between a class and a datatype?

前端 未结 10 1104
广开言路
广开言路 2021-02-13 15:30

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

10条回答
  •  被撕碎了的回忆
    2021-02-13 15:54

    A class is just one of the data types available in C#:

    Data Types:

    • Class
    • Struct
    • Enum
    • Delegate
    • Interface

    NOTE: I may be missing a few in above list

提交回复
热议问题