Sunday, July 20, 2014

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

No comments: