#include using namespace std; //myStaticMemebers1.cpp //static functions are not attached to //any particular object //can be used with scope ::operator class MyStat { private: static int sal; public: MyStat(){ cout<<"\n my defualt consturctor"; } MyStat(MyStat &, int);// copy constructor ~MyStat(){ cout<<"\n my defualt consturctor"; } static int ShowValue(){ return sal;} }; int MyStat::sal = 4500; //defining copyconstructor and integer parameter MyStat::MyStat(MyStat &arg, int n2) { sal= n2; cout<<"\n myConstruct2::myConstruct2"; cout<<"\n \t \b (myConstruct2 &arg, int n2):n1(n2) "<< n2; cout<<"\n \t \b private integer refreshed n1 " <