Why Should static data members be defined outside the Class

Why Should static data members be defined outside the Class ?

Answer:

Because, static data members have external linkage, and do not belong to the class., similar to global members.( Reference : The Annotated C++ Reference Manual "Basic Concepts" p.28 )

No comments: