Design a class named girl scout with fields that hold a


Problem

Complete the following tasks:

a. Design a class named Girl Scout with fields that hold a name, troop number, and dues owed. Include get and set methods for each field. Include a static method that displays the Girl Scout motto ("To obey the Girl Scout law"). Include three overloaded constructors as follows:

• A default constructor that sets the name to "XXX" and the numeric fields to 0

• A constructor that allows you to pass values for all three fields

• A constructor that allows you to pass a name and troop number but sets dues owed to 0 Create the class diagram and write the pseudocode that defines the class. b. Design an application that declares three Girl Scout objects using a different constructor version with each object. Display each Girl Scout's values. Then display the motto.

 

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Design a class named girl scout with fields that hold a
Reference No:- TGS02648739

Expected delivery within 24 Hours