If X is the name of the class, what is the correct way to declare copy constructor of X?
A. X(X arg)
B. X(X* arg)
C. X(const X* arg)
D. X(const X& arg)
Answer:D
If X is the name of the class, what is the correct way to declare copy constructor of X?
A. X(X arg) B. X(X* arg) C. X(const X* arg) D. X(const X& arg)