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 does stl mean in slang?
What two types of containers does the stl provide?
What is stl stand for?
What is stl in oop?
What is a standard template library (stl)?
In what scenario does the Logical file and Physical file being used?
sir please send me bpcl previous question papers
Can we use stl in coding interviews?
How is stl different from c++ standard library?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
How stl is different from the c++ standard library?
draw a flowchart that accepts two numbers and checks if the first is divisible by the second.
how to use C++?
Who created stl?
Is there any error below, its a code to delete all entires from a map #include