Question: What does this copy constructor do? How are the values being passed/copied? Not understanding the rhs and lhs. Thanks! bettyAnn (const bettyAnn &rhs) { BettyAnn
What does this copy constructor do? How are the values being passed/copied? Not understanding the rhs and lhs. Thanks!
bettyAnn (const bettyAnn &rhs)
{
BettyAnn copy = rhs;
std::swap(*this, copy);
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
