J
Jay Douglas
I'm not to sure how to phrase this question. I need to know how to call a
property of an object that contains an object. I'll use PetHouse and Cat
for an example. (I didn't use get or set to try to keep it simple and
short)
class CatHouse {
public Cat TheCat;
public bool HasCarpet;
}
class Cat {
public string CatName;
}
What I need to know is: From the TheCat object, how do I retrieve the value
of a property in CatHouse (i.e. CatHouse.HasCarpet)?
property of an object that contains an object. I'll use PetHouse and Cat
for an example. (I didn't use get or set to try to keep it simple and
short)
class CatHouse {
public Cat TheCat;
public bool HasCarpet;
}
class Cat {
public string CatName;
}
What I need to know is: From the TheCat object, how do I retrieve the value
of a property in CatHouse (i.e. CatHouse.HasCarpet)?