Suppose we wish to use a constructor of a Foo class (not a class template) that passes in one integer parameter. We wish to make an object called f and pass 5 into this constructor. The code for doing so would look like this:

A. f.Foo( 5 );
B. Foo( 5 ) f;
C. Foo f( 5 );
D. f( Foo( 5 ) );

C

Computer Science & Information Technology

You might also like to view...

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

1) The order of a method’s parameters is insignificant. 2) Methods of the same name can be declared in the same class, as long as they have different sets of parameters (determined by the number, types and order of the parameters). 3) Overloaded methods normally perform similar tasks, but on different types of data. 4) Any parameter in a parameter list can be declared as an optional parameter.

Computer Science & Information Technology

To convert a report to a Web page, open the report, then click the ____ DATA tab.

A. EXPORT B. IMPORT C. EXTERNAL D. INERNAL

Computer Science & Information Technology