Adjusted to show side effects and their handling
When dealing with static buffers, successive calls point
to the same memory location and overwrite formers ones...
committer: Markus Bröker <mbroeker@largo.homelinux.org>
/**
* test/demos/pmc/include/object.h
* Copyright (C) 2008 Markus Broeker
*/
#ifndef OBJECT_H
#define OBJECT_H
#include <string>
extern int refCounter;
class Object {
protected:
std::string name;
public:
virtual ~ Object ();
virtual std::string getName ();
virtual Object getClass ();
int getInstances ();
};
#endif