Static data members
In this part you will learn:
1. What is static data member?
2. Where static data members are used?
3. Syntax of Static data members
4. Writing program with Static data members
5. Showing output
Static data member
Static data members are those data members which retain their values, i.e. Static data members store the latest value in them so that the value will be used for next time when the function that makes use of static data member is called. In simple words, all the objects of a class share a common data member that is why we call it static.