¡@

Home 

c++ Programming Glossary: tb

How to implement a factory with multiple switches?

http://stackoverflow.com/questions/12566271/how-to-implement-a-factory-with-multiple-switches

my factory is like this MyInterface factory char ta char tb if ta 'c' tb 'c' return new MyImpl char char if ta 'c' tb.. is like this MyInterface factory char ta char tb if ta 'c' tb 'c' return new MyImpl char char if ta 'c' tb 's' return new.. if ta 'c' tb 'c' return new MyImpl char char if ta 'c' tb 's' return new MyImpl char short if ta 's' tb 'c' return..