#include #include "announcer.h" using namespace std; int announcer::count {0}; //static data member announcer::announcer(const string& s) : name {s} { ++count; cout << name << " is being born.\n"; } announcer::announcer(const announcer& another) //"copy" constructor : name {another.name} { ++count; cout << name << " is being born.\n"; } announcer::~announcer() { cout << name << " is dying.\n"; --count; } void announcer::print() const { cout << name; } int announcer::howMany() //static member function { return count; //static data member }