You will write a
DragonPokemon class that is a subclass of the
Pokemon superclass. Here are the things you should include in the
attackmethod to deal 200 damage instead of 50.
dragonRagethat allows them to use the superclass's
attackmethod to deal damage eight times (for a total of 400 damage) using Dragon Rage, but does not override/overload the
attackmethod. The hit points of the other Pokemon should be printed out each time it does 50 damage. Use a for loop in this method.
Once you are finished with both the
Trainer class and
DragonPokemon class (and you have tested both thoroughly), make sure they are pushed to GitHub.
Posted in apcsa