Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            UnitClass UNTobj1 = new UnitClass(1, 4, 3, 3, 8, 34, "South");

            MessageBox.Show(" \n" + UNTobj1.MakeString() + "\n");

            AddressClass ADRobj2 = new AddressClass(155, "Georgia", "Vancouver", "BC", "U6F 3F5", "Canada");

            MessageBox.Show(" \n" + ADRobj2.MakeString() + "\n");

            BuildingClass BLDObj2 = new BuildingClass();

            MessageBox.Show(" \n" + BLDObj2.MakeString() + "\n");

            FloorClass FLRObj1 = new FloorClass();

            MessageBox.Show(" \n" + FLRObj1.MakeString() + "\n");
        }
Ejemplo n.º 2
0
 //Copy Constructor
 public BuildingClass(BuildingClass right)
 {
     this.CBuildingName = right.GetBuildingName();
     this.CFloor[i]     = right.GetFloor(50);
     this.CAddress      = right.GetAddress();
 }