You will write a DragonPokemon class that is a subclass of the Pokemon superclass. Here are the things you should include in the DragonPokemon class:
Pokemon superclass.attack method to deal 200 damage instead of 50.dragonRage that allows them to use the superclass's attack method to deal damage eight times (for a total of 400 damage) using Dragon Rage, but does not override/overload the attack method. The hit points of the other Pokemon should be printed out each time it does 50 damage. Use a for loop in this method.public or private.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