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

Discussion Forum : Object Oriented Programming Using C++ - Section 3 (Q.No. 7)
7.
To use a template class member function, use the ________ with the instantiation
scope resolution operator
dot operator
class definition
keword template
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
2 comments Page 1 of 1.

Pkoli said:   8 years ago
Example-.

template <class T>
class Example {
public:
void do_something();
};
int main()
{

Example<int> ExampleInt;.

ExampleInt.do_something () ; //The class template member function is accessed by the object i.e. the instantiate using the dot operator.
}.

Rama said:   8 years ago
Please explain.

Post your comments here:

Your comments will be displayed after verification.