The question is, why do we declare BCGame outside of the main() method?
It’s mainly because we want to access the BCGame instance in functions other than main() as well. If we would’ve declared it inside main(), then we can’t access the member functions (the functions within this class) of BCGame in any of the other functions. Hope this helps!
1 Like
Indeed, I’ve tried to put it into the main() and the app was broken : )
Thank you, Apekshik! : ) BTW, nice YouTube channel! : )
1 Like
Love to help! And thanks for also noticing my (very small) channel! BTW, how did you come to know about it?
1 Like
Just googled your name ; )
Of course!
1 Like