Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ProcessClassA : BaseProcess
- ProcessClassB : BaseProcess
- ObjectA : BaseObject
- ObjectB : BaseObject
- ObjectA exampleObj = new ObjectA
- Process p = new Process(List<BaseProcess>{ProcessClassA ,ProcessClassB }) //Something like this but dont need to be in the contructor or be a list could be //something else but that allows not to violate Open Close principle.
- p.Process(exampleObj) => ProcessClassA.Process(exampleObj)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement