You've probably been asked this a million times in one form or another but, ....
What is the correct way to write a C++ OOP program (eg. for a game)?
I've researched the concepts of OOP several times over a long period of time and I have a (seemingly) decent knowledge of C++, but as soon as I go to apply OOP principles to a major project, I get stuck (because I didn't really understand how to practically apply OOP).
I understand how to get the program to compile whatever I do. So I know how to do multi-source programming, how to declare a class in the header, and give it's guts in the source.... etc.
But when it comes to say, having different components of a game, Graphics, Sound and objects, Alien, HumanShip, Gun, .... (just generic game stuff. I'm not focusing on a project atm, just want to understand C++ properly before diving in again)....
I run into problems.
Could you provide a general overview of what a C++ program should look like. I really need to get my head around it properly so I can actually use it.
Thx for your time.