public void Examine() { DoSomethingExtra(); // extension Point!!!! DecoratedExaminer.Examine(); // but still do the original stuff }
static void Main(string[] args) { Examiner = new DecoratorExaminer(new ConcreteExaminer()); Examiner.Examine(); }