Exemplo n.º 1
0
 public Envio(DateTime fechaEnvio, Cliente emisor, Cliente receptor, Mercancia merc)
 {
     this.fechaEnvio = fechaEnvio;
     this.emisor     = emisor;
     this.receptor   = receptor;
     this.merc       = merc;
     precioFinal     = CalcularPrecioEnvio();
 }
Exemplo n.º 2
0
        //Setters and Getters
        //public int IdEnvio { get => idEnvio; set => idEnvio = value; }
        //public DateTime FechaEnvio { get => fechaEnvio; set => fechaEnvio = value; }
        //public Cliente Emisor { get => emisor; set => emisor = value; }
        //public Cliente Receptor { get => receptor; set => receptor = value; }
        //public Mercancia Merc { get => merc; set => merc = value; }

        //Constructor
        public Envio(int idEnvio, DateTime fechaEnvio, Cliente emisor, Cliente receptor, Mercancia merc, double precioFinal)
        {
            this.idEnvio     = idEnvio;
            this.fechaEnvio  = fechaEnvio;
            this.emisor      = emisor;
            this.receptor    = receptor;
            this.merc        = merc;
            this.precioFinal = precioFinal;
        }