Question: Create a class called Dragon in a file named Dragon.java that extends Monster and does the following: Declare an integer constant called BASE _ STRENGTH
Create a class called "Dragon" in a file named Dragon.java that extends Monster and does the following:
Declare an integer constant called BASESTRENGTH which is set to
Create an override method of calcSTR which returns an integer that determines the strength of the Dragon as the value of BASESTRENGTH plus of the size times the level.
Uses the Dragon class calcSTR override method to determine and set the Dragon's strength. The necessary variables from the parent class are private. Use getters for level and size to use in calcSTR
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
