54 virtual int getAge()
const;
64 virtual bool decide(
double probability)
const;
68 virtual void print()
const;
virtual ~AGPerson()
Cleans up everything.
virtual bool decide(double probability) const
Lets the person make a decision.
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.
Base class of every person in the city (adults and children)