// PL9/staticdata.cpp // Example using static data members // Niels Walet, Last modified 03/02/2020 #include class my_class { private: int x{}; static int n_objects; public: my_class() : x{} {n_objects++;} my_class(int x_in) : x{x_in} {n_objects++;} ~my_class() {n_objects--;} void show() {std::cout<<"x="<