Source Code : Program On Count

//…..Program On Count.Cpp…….//

#include

#include

#include

class man

{

  int no;

  static int count;

  public:

  man()

  {

  count++;

  cout<<"\n The no of objects created are:\t"<

  }

  ~man()

  {

  cout<<"\n The no of objects destroyed are:\t"<

  }

};

int man::count;

void main()

{

  clrscr();

  man a,b,c;

  man d;

}