Hour 20. Special Classes, Functions, and Pointers

C++ offers a number of ways to limit the scope and impact of variables and pointers. So far you've seen how to create global variables, local function variables, pointers to variables, and class member variables. In this hour you will learn

  • What static member variables and static member functions are

  • How to use static member variables and static member functions

  • What friend functions and friend classes are

  • How to use friend functions to solve special problems

  • How to use pointers to member functions

Get Sams Teach Yourself C++ in 24 Hours, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.