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
What is stl in oop?
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
When did c++ add stl?
totoo po ba ang manga aliens!
What are the symptoms of stl?
Can we use stl in coding interviews?
Explain stl.
What are the various types of stl containers?
Is stl open source?
Define stl.
sir please send me bpcl previous question papers
How connect plc and pc through software
i wanted to know about questions about c,c++ , which is required for placements.... im a fresher
How do you convert stl to steps?
how can u do connectivity in c++ language? plz send me connectivity code in c++ ?