What is a template?

Answer Posted / yughandhar

templates r used to create generic classes and functions.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does oop mean in snapchat?

897


What is polymorphism in oops?

717


What is oops concept with example?

745


What is oops in simple words?

788


What do you mean by variable?

738






Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

2190


What is an interface in oop?

757


Why do we need polymorphism in c#?

859


What is the importance of oop?

810


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

1935


What is difference between polymorphism and inheritance?

792


What is the difference between abstraction and polymorphism?

814


what is difference between class template and template class?

2368


Why is polymorphism important in oop?

796


How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction

1856