#include <stdio.h>

class Foo
{
  public:
    Foo(int q);
    ~Foo();
  private:
    int x;
};

Foo::Foo(int q)
{
  x = q;
  printf("constructing a Foo: newObject%d\n", q);
}

Foo::~Foo()
{
  printf("deconstructing a Foo: newObject%d\n", x);
}

int main()
{
  Foo* newObject1 = new Foo(1);
  Foo* newObject2 = new Foo(2);
  delete newObject1;
  return 0;
}
