using System;
namespace P5_17
{
    class Employee
    {
        private string name;
        private string number;
        private decimal salary = 3000.00m;
        public Employee(string name, string number)
        {
            this.name = name;
            this.number = number;
        }
        public void printEmployee()
        {
            Console.WriteLine(": {0}\n: {1}", name, number);
            // ʹthisؼִݲTaxCalcTax
            Console.WriteLine("Ӧ˰: {0:C}", Tax.CalcTax(this));
        }
        public decimal Salary
        {
            get { return salary; }
        }
    }
    class Tax
    {
        public static decimal CalcTax(Employee E)
        {
            return 0.08m * E.Salary;
        }
    }
    class Program
    {
        static void Main()
        {
            // Employee
            Employee E1 = new Employee("", "0757");
            // ʾĳԱ
            E1.printEmployee();
            Console.ReadLine();
        } 
     }
}
