public Restaurante(string nombre, int empleados, string direccion, string duenio) { this._nombre = nombre; this._empleados = empleados; this._direccion = direccion; estado = "nuevo"; this._recaudacion = 0; this.dueño = new Dueño(duenio); this.mesa = new Mesa(); this.pedidos = new List <Pedido>(); }
public Restaurante(string nombre, int empleados, string direccion, double recaudacion, string duenio) { this._nombre = nombre; this._empleados = empleados; this._direccion = direccion; if (recaudacion < 0) { estado = "quebrado"; } else { estado = "buen pasar"; this._recaudacion = recaudacion; } this.dueño = new Dueño(duenio); this.mesa = new Mesa(); this.pedidos = new List <Pedido>(); }