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
totoo po ba ang manga aliens!
What is a stl vector?
What are the components of stl?
Is string part of stl?
draw a flowchart that accepts two numbers and checks if the first is divisible by the second.
What two types of containers does the stl provide?
i wanted to know about questions about c,c++ , which is required for placements.... im a fresher
please visit this site you'll find my question this is my homework please answer it if you can http://easyscience.org/ib/lofiversion/index.php/t36168.html
What is a standard template library (stl)? What are the various types of stl containers?
Do you like to Submit Questions in Bulk under Same Category?? Then use our Bulk ListerDo you like to Submit Questions in Bulk under Same Category?? Then use our Bulk Lister
How is stl different from c++ standard library?
What is meant by stl in c++?
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.
In what scenario does the Logical file and Physical file being used?
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.