コード例 #1
0
    public void AddWorker(string FullName, string Position, decimal Wage, ICommander commander)
    {
        Worker worker = new Worker()
        {
            FullName = FullName,
            Position = Position,
            Wage     = Wage
        };

        commander.AddSubordinate(worker);
    }