Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. A(n)__________member variable is shared by all instances of a class. 2. A(n)_

ID: 3769272 • Letter: 1

Question

1. A(n)__________member variable is shared by all instances of a class.

2. A(n)____________function is a special function that is allowed to be executed before any objects of a class are created.

3. A(n)________function is a function outside of a class that is allowed to access even private member data and member functions of class objects.

4. A call object________(can/cannot) be assigned to another object of the same class.

5. In order for a function to be a friend of a class, it must be granted this status by __________.

6. When memberwise assignment occurs______(all/just the public/just the private) data values are copied from one object to the other object.

7. A(n)________________is used to ensure that memberwise assignment handles pointers correctly when a new object is created and initialized with another object’s data.

8. Redefining the way an operator works when applied to objects is called ___________.

9. The operator function to redefine the way the subtraction operator works would be named_____________________.

10. A copy constructor should be passed the object whose values are being copied by

Explanation / Answer

1. public
2. constructor
3. friend
4. can
5. friend keyword in class
6. just public
7.
8. operator overloading
9. operator-
10. another object