Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create The Scout class. The scout class will be used to instantiate a scout object. It must include the following. 1. The Scout class will
Create The Scout class. The scout class will be used to instantiate a scout object. It must include the following.
1. The Scout class will be used to instantiate a scout object. It must include the following a. Two constructors as Gus likes the option of creating scout i. public Scout) One takes no arguments. It updates the ii. public Scout (String fName, String 1Name, String rank) different ways count of troop members One takes the first name, last name and rank as arguments. It updates the count of troop members. b. An ArrayList for the merit badges. i. public ArrayListString> getMeritBadges) a getter method to return the arraylist of badges method to add a single badge to the arraylist. multipleMeritBadges) a method to add multiple badges to ii. public void setMeritBadges (String singleMeritBadge) a iii. public void setMeritBadges (ArrayListStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started