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

Computer Science & Information Technology

You might also like to view...

Suppose you wish to find what tables are in a database, what fields they have, and how they are related you would review the _____.

A. SQL commands B. attributes C. schema D. sample data

Computer Science & Information Technology

You should add as many images as possible to a web page.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology