Static Member Functions | C++ Tutorial

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

I sure as hell that i will recomend you to my friends. I wish that you could be my :)

_Rodrigues-jcnf
Автор

Thank you for good tutorial. Have a question. Where is it okay to initialize static variable? Should it be initialized in header or cpp file? And another question is it considered bad practice to make static variable public?

dzentsetsu
Автор

Thank you! Private variables cannot be defined/initialized outside the class but private static variables can be initialized outside the class using ::, right?

ValliNayagamChokkalingam