Code:#include<iostream> using namespace std; class Object { public: static int nb_of_objects; Object () { nb_of_objects++; } Object(const Object&){ cout << " Object: copy constructor " << endl; nb_of_objects++; } static void show(){ cout << "Number of objects created is:" << nb_of_objects << endl; } }; int Object::nb_of_objects = 0; int main(){ Object::nb_of_objects; Object o; Object o2 = o; o.show(); return 0; }