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       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
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 the usage of clas templates
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is the usage of clas templates
Answer
# 1
through this we can make generic function. so this function 
will work for any data type.
 
Is This Answer Correct ?    2 Yes 0 No
Anil Kumawat
 
  Re: what is the usage of clas templates
Answer
# 2
We can able to operate "class template" functionalities in 
generic way, which supports different data types.
 
Is This Answer Correct ?    2 Yes 0 No
James Prasanna.j
 
 
 
  Re: what is the usage of clas templates
Answer
# 3
templates are used to create generic functions as well as 
classes..which can support miltiple data types..
they are mainly used when algorithm is commom for diff data 
types...so we dont hav to implement again and again for 
diff data types ..we make a generic func. which works for 
all...
 
Is This Answer Correct ?    3 Yes 0 No
Saurabh Chauhan
 
  Re: what is the usage of clas templates
Answer
# 4
Template is a mechanism that allows one function or class to 
deal with diffrent data types.
Using templates we can design a template class that operates on 
diffrent data types.
 
Is This Answer Correct ?    0 Yes 1 No
Keshav.gadde
 
  Re: what is the usage of clas templates
Answer
# 5
A template is a C++ feature that allows functions and
classes to be defined with any type.Class template is a
template used to generate template classes. You cannot
declare an object of a class template.Template class is an
instance of a class template.
 
Is This Answer Correct ?    2 Yes 0 No
Anil Bisht
 

 
 
 
Other OOPS Interview Questions
 
  Question Asked @ Answers
 
We have a scale and 7 balls. 1 ball is heavier than all the rest. How to determine the heaviest ball with only 3 possible weighing attempts? IBM2
why we call c++ is object oriented lanaguage HCL1
if u write a class do u write Assignment operator and copy constructor Siemens1
what is virtual function? Infosys11
What is OOPS and How it is different from Procedural Programming ? HP10
what is meant by files? Infosys2
What is Agile methodology? Inmar2
What do you mean by binding of data and functions?  1
What is the difference between declaration and definition?  5
is java purely oop Language? Infosys22
who is the founder of c++?  1
What is late bound function call and early bound function call? Differentiate.  2
What are the different forms of polymorphism?? PCS5
In what situation factory design patterns,DAO design patterns,singleton design patterns should be applied.?  1
What do you mean by pure virtual functions?  4
Tell us about yourself. IBM14
write a c++ program to find maximum of two numbers using inline functions.  1
polymorphism means? BFL2
In which Scenario you will go for Interface or Abstract Class?  1
You have one base class virtual function how will call that function from derived class?  4
 
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