예제 #1
0
        static void Main(string[] args)
        {
            ServicioImpresion impre = new ServicioImpresion();
            Tanque            tan   = new Tanque(100);
            Vehiculo          ve    = new Vehiculo(tan);
            int cargado             = ve.reFuel(80);

            impre.ImprimirRecargadoCombustible(cargado);
        }
예제 #2
0
 public Vehiculo(Tanque tan)
 {
     this.Tanque = tan;
 }