In which condition a template a better solution than a base , C/C++ Programming

In which condition a template a better solution than a base class?

A: While you are designing a generic class to contain or manage objects of other types, while the format & behavior of those other types are not important to their containment or management, and specifically while those other types are unknown (therefore, the generality) to the designer of the manager or container class.

 

Posted Date: 3/16/2013 2:52:34 AM | Location : United States







Related Discussions:- In which condition a template a better solution than a base , Assignment Help, Ask Question on In which condition a template a better solution than a base , Get Answer, Expert's Help, In which condition a template a better solution than a base Discussions

Write discussion on In which condition a template a better solution than a base
Your posts are moderated
Related Questions
write a c++ program to find the prime numbers

How does free know the size of memory to be deleted.? int *i = (int *)malloc(12); followed by free(i); how did free function call know how much of memory to delete? A: It bas


Write a program that displays both the lower case and upper case alphabetical letters using the following Format Lowercase        Uppercase a                        A

Write a simple generic version of method isEqualTo that compares its two arguments with the equals method and returns true if they are equal and false otherwise. Use this generic m

how to create a shopping cart and sibmit the code segment on screan

Find out initial basic feasible solution for the given transportation problem using Least Cost Method (LCM).

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b


There are ''n'' ants on a ''n+1'' length rod. The ants are numbered from 1 to n and are initially placed at positions starting from position 1 till position n. They are moving eith