[amp_mcq option1=”you must precede each function call with the word int or double” option2=”once a function is used as one type, it becomes unavailable for use with the other type” option3=”there is no difference in the procedure to call a member function” option4=”you cannot perform this operation in C++” correct=”option3″]
The correct answer is: C. there is no difference in the procedure to call a member function.
A class template is a template that can be used to create classes of different types. When you create an instantiation of a class template, you specify the type that you want to use for the class. For example, if you have a class template called MyClass, you can create an instantiation of it called MyClass<int> to create a class of type int.
Once you have created an instantiation of a class template, you can call the member functions of the class just like you would call the member functions of any other class. The type of the object does not matter. For example, if you have an object of type MyClass<int>, you can call the member function foo() like this:
myObject.foo();
The compiler will automatically convert the call to the appropriate type.
Options A and B are incorrect because the type of the object does not matter when you call a member function. Option D is incorrect because you can perform this operation in C++.