Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Water w = new Water();
            w.cooling();
            w.cooling();
            w.heat();
            w.heat();
            w.heat();

            Console.WriteLine();

            StringPrinter sp = new StringPrinter();
            sp.PrintSTR("The quick brown fox jumps over the lazy dog");
            sp.ChangeLC();
            sp.PrintSTR("The quick brown fox jumps over the lazy dog");
            sp.ChangeUC();
            sp.PrintSTR("The quick brown fox jumps over the lazy dog");
        }
Ejemplo n.º 2
0
 public LiquidWater(Water water)
 {
     this.water = water;
 }
Ejemplo n.º 3
0
 public SolidWater(Water water)
 {
     this.water = water;
 }
Ejemplo n.º 4
0
 public GasWater(Water water)
 {
     this.water = water;
 }