Objectives:
- To use inheritance to classes
- To apply the proper scope of variables
Character
Create a class called Character with the following attributes: name, health, stamina, and manna. Give the character the following three methods: walk(), run(), and showStats(). Give a new character health, stamina, and manna of 100 when it gets created. When a walk method is invoked, have the stamina decrease by 1. When a run method is involved, have the stamina decrease by 3. When a showStats() method is invoked, display on the screen the name, health, stamina, and manna of the character. Create an instance of the character called 'character' and have this character walk three times, run twice, and have it display its stats.
Shaman
Now, create another class called Shaman that inherits everything that the Character does and has, but 1) have the default health be 150 and 2) add a new method called heal(), which when invoked, increase...