Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Classes Part 32 - static member variables and functions in classes - Modern Cpp Series Ep. 70
Play lesson

The C++ Programming Language - Classes Part 32 - static member variables and functions in classes - Modern Cpp Series Ep. 70

4.0 (5)
38 learners

What you'll learn

This course includes

  • 68.3 hours of video
  • Certificate of completion
  • Access on mobile and TV

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!

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere