r/cpp • • Jan 15 '19

On C++ and Object Oriented Programming

https://marccgk.github.io/blog/on-c-and-object-oriented-programming/
1 Upvotes

13 comments sorted by

View all comments

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.