Sams Teach Yourself C++ in 21 Days

(singke) #1

DAY 15


WEEK 3

Special Classes and


Functions


C++ offers several 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.
Today, you will learn


  • How to share information across objects of the same type

  • What static member variables and static member functions are

  • How to use static member variables and static member functions

  • How to create and manipulate pointers to functions and pointers to
    member functions

  • How to work with arrays of pointers to functions

Free download pdf