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

Why do we use polymorphism in oops?

591


What do you mean by variable?

581


Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.

1794


What is pointer in oop?

543


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

1706






Can destructor be overloaded?

603


Why is encapsulation used?

582


Write a program to sort the number with different sorts in one program ??

1924


What is the difference between a constructor and a destructor?

621


Is enum a class?

611


Is oop better than procedural?

582


officer say me - i am offered to a smoking , then what can you say

1586


What are the benefits of interface?

587


Which is not an object oriented programming language?

548


What is advantage of inheritance?

696