Create a class named GirlScout that contains fi elds for a GirlScout’s name, troop number, and dues owed. Include a constant static fi eld 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 fi elds to default values or to parameter values. Also include properties for each fi eld. Create a class named DemoScouts that instantiates two GirlScout objects and displays their values. Create one object to use the defaultconstructor and the other to use the constructor that requires arguments. Also display the GirlScout motto. Save the class as DemoScouts.cs.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here