Esempio n. 1
0
 static void Main(string[] args)
 {
     Money cash1 = new Money();
      cash1.Amount = 40M;
      Console.WriteLine("cash1.ToString() returns: " + cash1.ToString());
      cash1 = new BetterMoney();
      cash1.Amount = 40M;
      Console.WriteLine("cash1.ToString() returns: " + cash1.ToString());
      Console.ReadLine();
 }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Money cash1 = new Money();

            cash1.Amount = 40M;
            Console.WriteLine("cash1.ToString() returns: " + cash1.ToString());
            cash1        = new BetterMoney();
            cash1.Amount = 40M;
            Console.WriteLine("cash1.ToString() returns: " + cash1.ToString());
            Console.ReadLine();
        }