static void Main(string[] args) { SmallApartment smallApartment = new SmallApartment("red"); Person person = new Person("Nick", smallApartment); person.ShowData(); }
public static void Main() { SmallApartment myCasitaInTheMountain = new SmallApartment("Purple", "Miguel"); myCasitaInTheMountain.ShowDetailedData(); }
public static void Main() { SmallApartment myCasitaInTheMountain = new SmallApartment("Purple", "Miguel"); myCasitaInTheMountain.ShowDetailedData(); Console.WriteLine(); myCasitaInTheMountain. Owner.MyHouse.ShowDetailedData(); }
public static void Main() { SmallApartment myCasitaInTheMountain = new SmallApartment(); Person miguel = new Person("Miguel"); Door purpleDoor = new Door("Purple"); miguel.MyHouse = myCasitaInTheMountain; miguel.MyHouse.MyDoor = purpleDoor; miguel.ShowData(); }
static void Main() { SmallApartment apartment = new SmallApartment(); Door d = new Door("red"); apartment.SetDoor(d); Person person = new Person("James"); person.SetHouse(apartment); person.ShowData(); }
static void Main() { bool debug = true; SmallApartment mySmallApartament = new SmallApartment(); Person myPerson = new Person(); myPerson.SetNom("Yann"); myPerson.SetHouse(mySmallApartament); myPerson.ShowData(); if (debug) { Console.ReadLine(); } }