what is the use of template classes in c++

Answer Posted / ags

Templates are used to avoid the repetition of similar
functions in any class.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the ways in which a constructors can be called?

1568


What is purpose of inheritance?

634


assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).

1653


Plese get me a perfect C++ program for railway/airway reservation with all details.

3416


What is the significance of classes in oop?

579






What is the real life example of polymorphism?

597


write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.

1762


What is polymorphism oop?

606


What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }

1969


how to get the oracle certification? send me the answer

1654


write a programe to calculate the simple intrest and compund intrest using by function overlading

1653


Why is oop useful?

591


How do you define social class?

592


what is different between oops and c++

1990


Why is polymorphism needed?

581