In what cases using of a 'template' is a better approach
then using of a 'base class'?
Answer Posted / ashwini kumar
Template is used when you have to use different data types
in a single Class.In run time compiler alloate memory for
data.Template is also used to reduce the complicity of any
program,But in base class Complexity is high in larger
program,because you have to create different class for
passing different data types.In template you can create
only one.
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How does an stl file work?
what is template and type convertion
What are the symptoms of stl?
how to making game in c++ ?
How do I convert a stl file?
Is stl open source?
To modify an, existing worksheet. What steps are involved for: 1. Inserting and deleting rows and columns. 2. Printing cell formulas 3Jld displayed values 3. Using the page setup command
In what scenario does the Logical file and Physical file being used?
help me i need a c++ program which takes sequesnce of characters and outputed sequence of their token taypes, work same compiler in lexical analysis phase
What is a list in c++ stl?
Can we use stl in coding interviews?
Describe the My Computer and My Documents folders; identify the elements that are present in every Window.
Why should a c++ programmer be interested in stl?
What are stl algorithms?
What is stl stack?