Check out All about Static in C++. It has everything you would like to know about Statics in C++