编辑代码

using System;

public class HelloWorld
{
    public static void Main()
    {
       // decimal d = 3.14m;
       // Console.WriteLine(d);
     //  object o1 = 4;
      // object o2 = "dfgrgg";

      string str1 = "C#";
      string str2 = str1;
      Console.WriteLine("str1字符串的值为:"+ str1);
      Console.WriteLine("str2字符串的值为:"+ str2);
      str1 = "ASP.NET";
      Console.WriteLine("str1字符串的值为:"+ str1);
      Console.WriteLine("str2字符串的值为:"+ str2);

            Consume consume = new Consume();
            consume.Record();
         
    }
}

class Card
{
    public string Money{get;set;}
}
class Consume
{
    public void Record()
        {
            Console.WriteLine(" \n-----信用卡消费记录-----\n");
            Card pCard = new Card() { Money = "8000" };
            Console.WriteLine("信用卡的总额度:"+pCard.Money);
            Card sCard = pCard;
            sCard.Money = "3000";
            Console.WriteLine("信用卡消费记录:"+pCard.Money);
            Console.Read();
        }
    
}