Operation OperationAdd OperationSub OperationMul OperationFactory -Operation +CreateOperation(string s) 简单工厂方法的缺点:要增加新的Operation时,要修改工厂类