Answered step by step
Verified Expert Solution
Link Copied!

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. image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions