what is the usage of clas templates

Answer Posted / keshav.gadde

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which type does string inherit from?

606


What is the types of inheritance?

592


What is stream in oop?

823


Why multiple inheritance is not possible?

586


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

1629






write a program to find 2 power of a 5digit number with out using big int and exponent ?

1881


What are properties in oop?

586


What is the difference between encapsulation and polymorphism?

580


What are the two different types of polymorphism?

662


What is meant by multiple inheritance?

726


What are the three parts of a simple empty class?

1443


Is this job good for future? can do this job post grduate student?

1676


What is the difference between inheritance and polymorphism?

577


How to improve object oriented design skills?

558


Explain the advantages of inheritance.

658