Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            // Se llaman crean 2 efectos totalmente diferentes.
            Duracion tiempo_1 = new Duracion(24, 0, 0);
            Duracion tiempo_2 = new Duracion(1, 1, 1);

            // Se imprimen ambas duraciones.
            tiempo_1.Imprimir();
            tiempo_2.Imprimir();
            // Se imprime la suma de ambos.
            (tiempo_1 + tiempo_2).Imprimir();
        }