As you mention there are the types int
, double
, string
, but in the case of Casa
is somewhat more complex.
To answer your question, it is best to clarify several things:
First you are defining a class Casa
. This class can contain the types int
, double
, string
, to define different attributes, for example like this:
public class Casa{
string color;
int cantidad_de_cuartos;
bool tiene_garaje;
}
Then, this class as such can be used as a variable in the following way:
Casa miCasa = new Casa();
miCasa.color = "verde";
miCasa.cantidad_de_cuartos = 3;
miCasa.tiene_garaje = true;
In this example, my variable miCasa
is of type Casa
, but I interact with its attributes that are of type int
, double
, string
. This is called an Object.
Also, my home object could be even more complex, you can have other objects inside, methods and other things that you need, but if I explain it here you get out of what you ask. :)
Then going back to your question what type of data does that store? , store what you want, the class you configure it as you want and you set what it will have, it does not have a specific data type as such .