logo_cppLately I have been toying around with Visual C++ to rebuild some of my pathfinding algorithms done originally in AS3 and CSharp. While working on porting the code over, I can’t help to feel that OOP was just slapped into C++ from C. I might be getting this feeling as I use mostly Java inspired languages (yes, CSharp is also very Java inspired) that had a lot of forethought on how OOP should work and how developers implement it in their code. For example, it seems counter-intuitive to me to declare methods that float somewhere outside the class definition brackets. Also, it seems confusing to me that you declare the default values for method parameters in the method prototype and not in its definition. Additionally, why isn’t the compiler smart enough to look ahead for a function/method declaration instead of requiring the user to manually create extra code prototyping their existence. Perhaps Java-like languages has spoiled me, or I don’t see the “big picture” yet on why the language acts the way it does. Anyone from a similar background wonder the same thing about traditional C++?


Author: Jonathan Dunlap
Jonathan is a veteran software architect, author of IsoHill, humanitarian, and has worked with Bigpoint Inc, CrowdStar, ePrize, and Microsoft.