Answer the following statements true (T) or false (F)
1. When a class declares an entire class as its friend, the friendship status is reciprocal. That is, each class's member functions have free access to the other's private members
2. By default, when an object is assigned to another, each member of one object is copied to its counterpart in the other object.
3. When a class contains a pointer to dynamically allocated memory, it a good idea to have the class overload the assignment operator.
4. If you overload the prefix ++ operator, the post fix ++ operator is automatically overloaded also.
5. If a function f is a friend of a class A, and the class A is a friend of a class B, then the function f is able to access private members of B.
1. FALSE
2. TRUE
3. TRUE
4. FALSE
5. FALSE
You might also like to view...
Which command would you use to swap the words hither and yon on any line with any number of words between them? (You need not worry about special punctuation, just uppercase and lowercase letters and spaces.)
What will be an ideal response?
A ________ enables you to quickly link to any file on your computer or to any Web page on the Internet
A) ScreenTip B) software application C) command D) hyperlink
A networked hypermedia system requires a uniform means of assigning node addresses using ____.
A. path names B. hyperlinks C. URLs D. HTML
In the following code, which field in the associated form is being used for the Case structure? Select Case [Course] Case "CIS 101" lblMessage, Caption = "Prerequisite CIS 100 required"
A. CIS 101 B. Course C. CIS 100 D. Case CIS 101