*Help me keep doing these videos!*
This works relies on *your* support! You can show it in one of these ways:
📚 Start a FREE Audible trial: https://www.audibletrial.com/CodeForYourself
🛍️ Buy gear I use to make this video: https://github.com/cpp-for-yourself/sponsor/blob/main/amazon.md
💶 Directly become a sponsor on GitHub: https://github.com/sponsors/niosus
📺 Watch my videos *to the end* and leave comments
⁉️ Find *your* way to support this work here: https://github.com/cpp-for-yourself/sponsor/tree/main
Everything that you wanted to know about static (when it is used *inside* of classes) but were afraid to ask. For when (not) to use static *outside* of classes, see https://youtu.be/7cpPQunjv4s
📚 As always, the script to the video lives here: https://github.com/cpp-for-yourself/supplementary-materials/blob/main/lectures/static_in_classes.md
00:00 - Intro
01:26 - Static class methods
04:54 - Static class data
08:55 - Typical usage examples
15:14 - Summary
Credits:
- Rainbow PNG Designed By 芯、心相茚 from https://pngtree.com/freepng/cloud-rainbow-star-sticker-painting_7566326.html?sol=downref&id=bef
- Subscription counter video by FAHIMG from Pexels: https://www.pexels.com/video/green-background-animation-youtube-subscribe-3822778/
Corrections:
01:48 There is a missing Foo:: before the function out-of-class definition.
02:03 Still the same missing Foo:: before the function out-of-class definition.