what is copy constructor?
when, why we use copy constructor??
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ken HPosted Aug 28, 2015, 5:59 AM
RakeshPosted Jul 3, 2015, 12:50 AM
Sujeet SumanPosted Jul 3, 2015, 12:22 AM
class Test
{
// Copy constructor.
public Test(Test previousTest)
{
Name = previousTest.Name;
Age = previousTest.Age;
}
}
Gowtham KPosted Jul 3, 2015, 12:17 AM
Manj NPosted Jul 3, 2015, 12:11 AM
Rajeesh MenothPosted Jul 3, 2015, 12:06 AM