Answer the following statements true (T) or false (F)
1. Friend functions are members of the class.
2. All operators can be overloaded.
3. If you have mutators and accessors, you should not have friend functions also
4. Friend functions may directly modify or access the private data members.
5. The following is a properly declared overloaded insertion operator for myClass.
ostream& operator <<(ostream &out, const myClass &obj);
1. FALSE
2. FALSE
3. FALSE
4. TRUE
5. TRUE
You might also like to view...
Answer the following statements true (T) or false (F)
1) An array can store many different types of values. 2) An array index should normally be of type float. 3) An individual array element that’s passed to a method and modified in that method will contain the modified value when the called method completes execution. 4) Command-line arguments are separated by commas.
In an e-mail address, what symbol separates the domain name from the rest of the address?
a. # b. . c. @ d. -
Given the location of the first leaf element, the location of the last non-leaf element is one less.
Answer the following statement true (T) or false (F)
Each link in a binary tree node points to a(n) ____ of that node.
A. parent B. child C. value D. sibling