我有以下课程:
public interface IRule { void Execute(int i); }
public interface IRule1 : IRule { }
public interface IRule2 : IRule { }
public interface IRuleExecutor { void Execute(int i) }
public class Rule1 : IRule1 { public void Execute(int i) { } }
public class Rule2 : IRule2 { public void Execute(int i) { } }
public class RuleExecutor : IRuleExecutor
{
private ICollection<IRule> allRules;
public RuleExecutor(ICollection<IRule> rules)
{
this.allRules = rules;
}
public void Execute(int i) { }
}
在UML类图中显示这些类(尤其是RuleExecutor与规则之间的关系)的正确方法是什么?
先谢谢