Q4. Inheritance, Overriding, and Overloading For a video game, you need to implement some characters, including enemies
Posted: Fri Jul 01, 2022 5:33 am
Q4. Inheritance, Overriding, and Overloading For a video game, you need to implement some characters, including enemies (dark wizards, demons, trolls, ghosts) and heroes (good wizards, mages (which are a lot like a "good" demons), and elfs). Each character will have its own default action; for example, basilisks stare, and dark wizards and good wizards both cast spells. All the enemy characters move in a characteristic jerky way, but the heroes move smoothly. Draw a UML class diagram for this situation, including (at minimum) the elements underlined above. Your design must include inheritance, and either overriding or overloading or both.