?
Competitive Exams MCQs
Aptitude
English
Verbal Reasoning
Non Verbal Reasoning
General Knowledge(GK)
General Science(GS)
Data Interpretation(DI)
Banking Awareness
Current Affairs
Subject wise GK MCQs
General Knowledge(GK)
State Wise GK
History GK
Geography GK
Physics GK
Chemistry GK
Biology GK
Environmental Science GK
Computer Fundatmental MCQs
Computer Fundamentals
Microsoft Word
Microsoft Excel
MS Power Point
Tally
Operating System
Python
AI(Artificial Intelligence)
Join the Discussion
Login to post a comment or share your explanation.
LoginSo the correct answer is:
A. scope resolution operator
Explanation:
When you have a template class, you often need to specify the type parameters to instantiate the template class. Once instantiated, you can use the scope resolution operator (::) to refer to its member functions. Here’s an example:
template
class MyClass {
public:
void myFunction();
};
// Define the member function outside the class definition
template
void MyClass::myFunction() {
// Function implementation
}
// Usage
int main() {
MyClass obj; // Instantiation of the template class with int
obj.myFunction(); // Call to the member function
}