Computer Science, asked by anchal5941, 11 months ago

33. What is a template? A template is a formula for creating a generic class a template is used to manipulate the class a template is used for creating the attributes none of the above

Answers

Answered by scl038
0

Answer:

 Template is  effective and most powerful  features  of c++ and it lwt to  write the generic programs  a. it can  create the  single function   and class to work  with the different  type of the  using  templates.  It has two different way such function  and  templates and  class  templates.  

template <class T>

T someFunction(T arg)

{

  ... .. ...

}

Similar questions