Quote Originally Posted by Elysia View Post
I would go with my suggestion: create a setter and getter in the Orc class to set/get the weapon and then manually create a weapon and attach it to the object.
Thanks, I created a getter in Orc, called getWeaponDescription, this is what I wrote:

Code:
string Orc::getWeaponDescription()
{

return weapon1.getDescription();

}
^ This calls Weapon's getDescription() function to return the details. It compiles, and behaves correctly at run time.

I'm not sure what you mean by "manually create a weapon and attach it to the object" - I assume something along the lines of having some kind of Weapon array inside Orc, along with a public function that allows passing of Weapon objects to add into the array, am I on the right track?

Cheers.