Suppose that the Test class does not have an overloaded assignment operator. What happens when an assignment a=b; is given for two Test objects a and b?

A. The automatic assignment operator is used

B. The copy constructor is used

C. Compiler error

D. Run-time error

See Correct Answer

B. The copy constructor is used

Submitted By : Ahsan Ali Soomro

%d bloggers like this: