The correct answer is: A. between angle brackets.
When you instantiate a template class, you need to specify the type that will be used to fill in the template parameters. You do this by placing the type’s name between angle brackets (< >) after the template class name. For example, if you have a template class called MyClass
with a template parameter called T
, you would instantiate it as follows:
MyClass<int> myIntObject;
This would create an object of type MyClass
that uses the type int
to fill in the template parameter T
.
The other options are incorrect. Option B, in parentheses, is used to specify the arguments to a function. Option C, on a line by itself, is used to declare a variable. Option D, immediately prior to the class name, is used to declare a function.