-**[MH: earlier you say every class has a .h and .cpp so what you are saying here will confuse beginners without you elaborating on what you mean. Maybe you can ask the reader to imagine how they would do this without OOP: They'd need to store a SEPARATE array of x values, y values, x speeds, y speeds, etc. and keep track of them all themselves. OOP allows you to hide and organize that information. Then you can also bring in the idea of extending your code. Say you want to have a ball that is filled with helium and floats... now you need all those x/y/speed/etc arrays again, but you need to keep track of which ones are normal balls and which are helium etc etc...]**
0 commit comments