Make sure all return statements that return container


You wish to convert a container class to a template container class.  Which of the following should you consider?

select all that apply

A. Make sure operations on container data are not type specific. For example, don't use string functions on container data.
B. Make implementation visible.  One way to do this is to include both interface and implementation in the header file.
C. Make sure all return statements that return container data only return container data.  If a return statement returns container data under certain conditions, but another return statement returns something that is not container data under other conditions, there could be a data type conflict when a different data type is used for this template.
D. Make the class visible to the client.  One way to do this is to include the main function in the header file.

 

 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Make sure all return statements that return container
Reference No:- TGS01205275

Expected delivery within 24 Hours