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
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.
}.
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:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers