Computer Science - Object Oriented Programming Using C++ - Discussion


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
[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


No answer description available for this question.

Subhashini said: (Sep 3, 2014)  
How can we say that it must precede with int and double?

Explanation please.

Alka said: (May 16, 2018)  
What is instantiation?

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.