My professor has assigned a lab that we will later be using to learn how to abuse the various types of data structures. In this first lab he asks for the default constructor, a copy constructor, and an overloaded constructor to accept the appropriate data, which you'll see in a moment. My question is what exactly is the overloaded constructor supposed to do and am I supposed to create the innards like I would a getter/setter? I posted my definitions below with the exception of the overloaded constructor because I'm not sure how to write it:
Contributor::Contributor()
{
Donation=0.0;
Sex=none;
IDKey=0;
}
Contributor::Contributor (string Name, double Donation, gender sex, int IDKey)
{
}
Contributor::Contributor (const Contributor& InContributor)
{
Name=InContributor.Name;
Donation=InContributor.Donation;
Sex=InContributor.Sex;
IDKey=InContributor.IDKey;
}