Click here to Skip to main content
15,886,578 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C++
class MyClass
{
    string str;
    int num1;
    MyClass *my;
public:
    MyClass(string myStr);
    MyClass(string myStr, int mynum);
    MyClass(const MyClass& mc);

    Copy(MyClass *mc);
    Copy(const MyClass &p);
    SetOther(MyClass *o);
};


the declaration of a copy constructor here is MyClass(const MyClass& mc); right?

Thanks!
Posted

1 solution

you are absolutely right, cap!
 
Share this answer
 
Comments
fjdiewornncalwe 4-Oct-12 10:02am    
Agreed. +5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900