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