Whenever I read something like this, I conclude that I must be entirely confused by what OOP is. That, or the author is just attacking a strawman.
I am also very confused as to why this author believes that his example is actually representative of OOP design. Presumably, if this is his mindset, then if he were writing a procedural equivalent, he would assign a function pointer to a heap-allocated variable based on argc, and call the result.
4
u/tehjimmeh Jan 15 '19
Whenever I read something like this, I conclude that I must be entirely confused by what OOP is. That, or the author is just attacking a strawman.
I am also very confused as to why this author believes that his example is actually representative of OOP design. Presumably, if this is his mindset, then if he were writing a procedural equivalent, he would assign a function pointer to a heap-allocated variable based on argc, and call the result.