45 std::cout <<
"- Person: Age=" <<
age << std::endl;
virtual ~AGPerson()
Cleans up everything.
virtual bool decide(double probability) const
Lets the person make a decision.
static double rand(std::mt19937 *rng=0)
Returns a random real number in [0, 1)
virtual void print() const
Puts out a summary of the class properties.
AGPerson(int age)
Initialises the class attributes.
virtual int getAge() const
Provides the age of the person.