Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Questions 1. If temp->node is actually an archer, which methods can you call wit

ID: 3566769 • Letter: Q

Question

Questions 1. If temp->node is actually an archer, which methods can you call with temp->node? a) Only Character?s methods b) Character?s and Playable Character?s methods c) Character?s, Playable Character?s, and Archer?s methods d) Only Archer?s methods. 2. Why is display() marked virtual? a) To allow overriding in derived classes b) To allow dynamic (late) binding C) All of the above d) None of the above 3. How can we call Mage?s CastSpell() from a Character object? a) No changes needed. b) Cast the Character to a Mage. c) It?s impossible. d) Cast the Character to a PlayableCharacter. 4. What is CharacterNode?s relationship with Character, and why? a) Has-a: CharacterNode contains a pointer to CharacterNode b) Has-a: CharacterNode contains a pointer to Character c) ls-a: CharacterNode?s only real data is a Character d) ls-a: CharacterNode extends the Character class 5. Which of these casts is invalid? a) Archer to Character b) Archer to PlayableCharacter c) PlayableCharacter to Character d) Mage to Monster

Explanation / Answer

1)b
2)c
3)c
4)b
5)d