Exemple #1
0
        static void Main(string[] args)
        {
            //将类实例化,并分别赋值,并调用其中的方法
            Clerk zsClerk = new Clerk();

            zsClerk.Name       = "张三";
            zsClerk.Gender     = '中';
            zsClerk.Age        = -25;
            zsClerk.Department = "人力部";
            zsClerk.Workyears  = 5;
            zsClerk.Write();
            Console.ReadKey();
        }