Test:Computer Science

Given a class Thing and the code:

Thing thingOne, thingTwo;

1.

What function call is the following equivalent to?

thingTwo = thingOne;

None of the above

ostream& Thing::operator=(const Thing& rhs);

thingTwo.operator = (thingOne);

thingOne uses the copy constructor of thingTwo

operator=(thingTwo, thingOne);

1/2 questions

0%

Access results and powerful study features!

Take 15 seconds to create an account.
Start now!Create your free account and get access to features like:
  • Full length diagnostic tests
  • 邀请你的朋友
  • Access hundreds of practice tests
  • Monitor your progress over time
  • Manage your tests and results
  • Monitor the progress of your class & students
By clicking Create Account you agree that you are at least 13 years old and you agree to the Varsity Tutors LLCTerms of UseandPrivacy Policy.
Learning Tools by Varsity Tutors