< previous page page_317 next page >

Page 317
Hour 20
Special Classes and Functions
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
Static Member Data
Until now, you have probably thought of the data in each object as unique to that object and not shared among objects in a class. For example, if you have five Cat objects, each has its won age, weight, and other data. The age of one does not affect the age of another.

 
< previous page page_317 next page >

If you like this book, buy it!