Summary
Full Transcript
►Full C++ Series Playlist: https://www.youtube.com/playlist?list=PLvv0ScY6vfd8j-tlhYVPYgiIyXduu6m-L ►Find full courses on: https://courses.mshah.io/ ►Join as Member to Support the channel: https://www.youtube.com/channel/UCA64pZbN5Mz5NxC3SO4qpDg/join ►Lesson Description: In this lesson I show you how to use static within a class. The static keyword used with member variables in a class limits their scope to 'class scope'. Effectively, the variables are working the same as with static in our other example, just that they are available from a class scope, and not tied to a specific instance of a class. Static member functions are similar in that they are not tied to a specific instance of a class, and can otherwise only make use of static member functions in their body (i.e. they cannot use 'this' within the static member function). ►YouTube Channel: https://www.youtube.com/c/MikeShah ►Please like and subscribe to help the channel!
