+ 2
How is int is a structure in c#?
3 Respuestas
+ 1
When you want to make a new int variable,
you simply declare it thru this:
int num = value;
And not thru this:
int num = new int(value);
That way of making an instance of an object is one of the characteristics of a structure, thus making the "int" a "struct"
0
Int also have methods however because it is a struct you have no field variables and cannot inherit from it..
- 4
int variable name;