Question: In C# and including comments to explain the implementation: Use the Person class as a guide. In the project ClubExample, add classes Group and Club
In C# and including comments to explain the implementation:
Use the Person class as a guide.
In the project ClubExample, add classes Group and Club Create properties for the attributes of each class Add constructors in each class One constructor takes no parameters and takes no action One constructor has parameters for each attribute and uses those values to initialize the properties In the project ClubExampleTests add a class ClubTests that tests the getters and setters for class Club. Follow the pattern in PersonTests In the project ClubExampleTests add a class GroupTests that tests the getters and setters for class Group
***PERSON Class:
using System.Text; using System.Threading.Tasks;
namespace ClubsExample { public class Person { private string emailAddress; private string name;
public Person() { }
public Person(string initialName, string initialEmailAddress) { name = initialName; emailAddress = initialEmailAddress; }
public string getEmailAddress() { return emailAddress; }
public void setEmailAddress(string newEmailAddress) { emailAddress = newEmailAddress; }
public string getName() { return name; }
public void setName(string newName) { name = newName; }
} }
Person Club Group name: string emailAddress: string -name: string -name: string -description: string description: string 0. member 0.. belongs to 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
