โ Back to Inheritance
Question 528
Wizard Extends Character
Wizard Extends Character
Characterhas a constructor that stores a health value. Complete theWizardconstructor so it calls the base constructor with100. The tester creates aWizardand prints itsHealth. Do NOT write aMainmethod. The program prints: 100
Expected Output:
100
Topics:
Inheritance
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cw, cr, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.