Title: C++ & Oops
Title: C++ & Oops
SESSION 8
FRIEND FUNCTIONS & STATIC
MEMBERS
Static Data Member:
A data member of a class can be static.
It is initialized to zero when the first object
of the class is created. No other
initialization is permitted.
Only one copy of that member is created
for the entire class and is shared by all
objects of the class.
It is visible only within the class. Its
lifetime is till the program is terminated.