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
c program to count the number of occurances of the string in padovan''s string

Functions Overloading This a capability in which a C++ program can have several functions performing similar tasks on different data types. When an overloaded function is calle

Define Register Storage Class - computer programming? The Storage class register notify the compiler that the associated variables must be stored in high-speed memory register.

A function REPAT is specified below. Function REPAT(c in Char, i in Int, s in mString) return in mString pre 1 ≤ i ≤ the length of s. post The returned value is a string identic

A string S is said to be "Super ASCII", if it contains the character frequency equal to their ascii values. String will contain only lower case alphabets (''a''-''z'') and the asci

I need Profile and optimize a C++ library for speed Project Description: Optimize and profile an existing C++ library for speed. This library uses OpenMP and OpenCV and C+

Differentiate between a template class and class template in C++? Ans) Template class: A generic definition or a parameterized class not instantiated until the client gives the

How to insert values in array - c++ program: Write a program to insert values in array void main() { int a[2][3][2]={                                 {

Write a program to add co-ordinates of the plane The class having x and y co-ordinates. Create three objects. Use a constructor to pass one pair of co-ordinates and a funct

Within software languages we have the ability to store information in mail boxes i.e. memory slots which are given names to represent the box. The naming rules are governed by the