I have defined this printDetails method for the Friend and Foe objects which inherit the Character class.
-(void) printDetails
{
NSLog (@"\n%@: \nStrength is %ld \nIntelligence is %ld \nSpell is %@\n\n", self.name, self.strength, self.intelligence, self.spell);
}
In main I print my array "characters"
NSLog(@"%@", characters);
But my output comes out as what looks like a series of memory addresses.
(
"<Friend: 0x100204aa0>",
"<Friend: 0x100600320>",
"<Friend: 0x100600170>",
"<Foe: 0x100500330>",
"<Foe: 0x100205b50>",
"<Foe: 0x100102270>"
)
-(NSString *)descriptionof the classFriendandFoe, and/orCharacter.