Exemplo 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");
        }
Exemplo n.º 2
0
 public LiquidWater(Water water)
 {
     this.water = water;
 }
Exemplo n.º 3
0
 public SolidWater(Water water)
 {
     this.water = water;
 }
Exemplo n.º 4
0
 public GasWater(Water water)
 {
     this.water = water;
 }