Home »
Unlabelled »
If X is the name of the class, what is the correct way to declare copy constructor of X? | C++
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:
Post a Comment