//CONSTRUCTOR public Casa(int numeroPuerta, double superficieM2, int canHabitantes) { this.numeroPuerta = numeroPuerta; this.superficieM2 = superficieM2; this.cantHabitantes = canHabitantes; this.observadores = new List <Observador>(); //constructor por defecto this.constructor = new ConstructorSimple(); }
//CONSTRUCTOR public Plaza(string nombre, int superficieM2, int cantArboles, int cantFarolas) { this.nombre = nombre; this.superficieM2 = superficieM2; this.cantArboles = cantArboles; this.cantFarolas = cantFarolas; this.observadores = new List <Observador>(); //CONSTRUCTOR MIXTO POR DEFECTO this.constructor = new ConstructorMixto(); }