Question: Question 6 (5 points) Download GameCharacter.java and CharacterTester.java from D2L content module- Chapter 2 Quiz. Create a new class that inherits from GameCharacter. Name your

Question 6 (5 points) Download GameCharacter.java and CharacterTester.java from D2L content module- Chapter 2 Quiz. Create a new class that inherits from GameCharacter. Name your new class - Soldier New Attributes: String rank and int numberOfGuns Create appropriate getters/setters and a toString that prints all attributes of the class. Test your code in your IDE and ensure it compiles and runs when you edit CharacterTester.java Copy and Paste Soldier.java text into this quiz
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
