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 is static in oop?

818


What is the advantage of oop over procedural language?

835


What is difference between data abstraction and encapsulation?

824


What is the benefit of oop?

749


What is polymorphism and example?

769


Why interface is used?

731


What are the benefits of polymorphism?

843


Can static class have constructor?

778


explain sub-type and sub class? atleast u have differ it into 4 points?

2033


How to call a non virtual function in the derived class by using base class pointer

5877


• What are the desirable attributes for memory managment?

1934


What is new keyword in oops?

772


What is encapsulation and abstraction? How are they implemented in C++?

834


What is the purpose of enum?

759


What are the 4 main oop principles?

929