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

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

Answer: D


0 comments:

Post a Comment

Blogger news