Question: 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. Create The Scout class. The scout class will be used to instantiate

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 (ArrayList the arrylist. C. A static variable t keep track of the troop count d. public static String getTroopCount) Returns a string with the number of troops. e. All fields are private. f. Getters and setters for fields not specified above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!