maybe its silly but I am not sure if there is difference between types and data types
int is data type
class A{}
A is type or data type?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no such thing as a “data type” in any .NET language. “Data type” is often used to clarify “type” to refer to the actual runtime type of the variable rather than a more abstract notion of what “kind” of value is present.
intis what’s referred to as a value type. All primitive types (int,double,char, etc.) are value types, with the exception ofstring, which is a reference type (though, like value types, it’s immutable).Any object declared as a
classis a reference type. Any object declared as astructis a value type.