Wednesday, 8 August 2012

If X is the name of the class, what is the correct way to declare copy constructor of X? | C++

A. X(X arg)
B. X(X* arg)
C. X(const X* arg)
D. X(const X& arg)

Ans: D

No comments: