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

1. Destructor functions are often used to free memory that was allocated by the object.
2. While a class's member functions may be overloaded, the constructor cannot be overloaded.
3. When using smart pointers to dynamically allocate objects in C++ 11, it is unnecessary to delete the dynamically allocated objects because the smart pointer will automatically delete them.
4. When passing a file stream object to a function, you should always pass it by reference.

1. T
2. F
3. T
4. T

Computer Science & Information Technology

You might also like to view...

You can have as many pinboards as you want, organized by ________ or topic

Fill in the blank(s) with correct word

Computer Science & Information Technology

Which is an example of an Excel function?

A) =D7/D20 B) =D6 + D7 + D8 C) =D5*100 D) =SUM(D6:D8)

Computer Science & Information Technology