ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C++  >>  OOPS
 
 


 

 
 STL interview questions  STL Interview Questions
 OOPS interview questions  OOPS Interview Questions
 C++ General interview questions  C++ General Interview Questions
Question
What is a template?
 Question Submitted By :: Tribhuvan Sharma
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is a template?
Answer
# 1
The template specifies a set of parameterized classes or 
functions.
 
Is This Answer Correct ?    1 Yes 0 No
P Suresh Kumar
 
  Re: What is a template?
Answer
# 2
Templates is one of the features added to c++ recently.a 
template can be considered as a kind of macro.
 
Is This Answer Correct ?    0 Yes 0 No
Debika Mohapatra
 
 
 
  Re: What is a template?
Answer
# 3
Templates is one of the features added to c++ recently.a 
template can be considered as a kind of macro.
Templates are mainely used for creating the generic classes
 
Is This Answer Correct ?    0 Yes 0 No
Yughandhar
 
  Re: What is a template?
Answer
# 4
Template is used for generic programming. In other words 
when you want to write a function or a class type 
independent, go for templates.

template<class T>
void fun(T x, T y); // Is a Template function

template<typename T>
class abc{
T m;
}; // Is a Class Template

template<class T>
class abc{
T m;
}; // Is a Class Template
 
Is This Answer Correct ?    0 Yes 0 No
Ravinandan
 
  Re: What is a template?
Answer
# 5
templates r used to create generic classes and functions.
 
Is This Answer Correct ?    1 Yes 0 No
Yughandhar
 

 
 
 
Other OOPS Interview Questions
 
  Question Asked @ Answers
 
What is Agile methodology? Inmar2
is java purely oop Language? Infosys22
why we call c++ is object oriented lanaguage HCL2
Name an advantage of linked list over array? IBM6
When a private constructer is being inherited from one class to another class and when the object is instantiated is the space reserved for this private variable in the memory?? Honeywell12
what is the main difference between c and c++? Microsoft25
What is abstraction?  6
What is a scope resolution operator? HP4
What are the main differences between procedure oriented languages and object oriented languages?  4
When is a memory allocated to a class?  3
What is multiple inheritance ? Ness-Technologies8
When is an object created and what is its lifetime? IBM1
What is command routing in MFC GE1
pointers are support in C#? if yes then how to use it? Softvision-Solution4
What is friend function? Wipro3
i ahve v low % in 12th n BSC which is aroun 50 coz science was imposed on me......nw m doin MCA n my aggregate in above 74%,what shud i say if asked about low previous percentage??????  3
what is virtual function in c++  4
What is the difference between class and structure?  3
how can we design a magic square in c++?or suggest me the basic idea of it.  1
What is polymorphism? Explain with an example.  7
 
For more OOPS Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com