Vidyalelo
Computer Science · Q26

Object Oriented Programming Using C++

Engineering and GATE · Computer Science · question 26

Q26

If you create an instantiation of a class template with an int, and then create a second instantiation with a double, then

A.
you must precede each function call with the word int or double
Answer
B.
once a function is used as one type, it becomes unavailable for use with the other type
C.
there is no difference in the procedure to call a member function
D.
you cannot perform this operation in C++

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board