Consider the sample code given below and answer the question that
follows.
class Person
{
string name;
int age;
Person *spouse;
public:
Person(string sName);
Person(string sName, int nAge);
Person(const Person& p);
Copy(Person *p);
Copy(const Person &p);
SetSpouse(Person *s);
};
Which one of the following are declarations for a copy constructor?
Correct Answer: Person(const Person &p);
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More C++ MCQ Questions