Question: Write a C# console application named GirlScout that contains fields for a GirlScout's name, troop number, and dues owed. Include a constant static field that
Write a C# console application named GirlScout that contains fields for a GirlScout's name, troop number, and dues owed. Include a constant static field that contains the last words of the GirlScout motto ("to obey the Girl Scout law"). Include overloaded constructors that allow you to set all three nonstatic GirlScout fields to default values or to parameter values. Also include properties for each field. Create a class named DemoScouts that instantiates two GirlScout objects and displays their values. Create one object to use the default constructor and the other to use the constructor that requires arguments. Also display the GirlScout motto. Save the class as DemoScouts.cs.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
