6
What I understand about data type is that they are formed by three properties, they are:
- Address set;
- Set of Operations;
- Space in Memory;
Assuming what is above I can understand that a class I create for example class Pessoa
:
public class Pessoa
{
private string Nome {get; set;}
public Pessoa()
{
this.Nome = "";
}
}
That this class Pessoa
is a type of data like string, int, char or double? Or a class cannot be considered a data type?
I can’t talk about the 3 items mentioned, it doesn’t seem to be a correct definition, but if you give a reference to where this is used or more details, I can try to talk about this.
– Maniero
It’s more conceptual even, the 3 items cited was what I understood in college, I may be wrong about that too.
– gato