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
Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec

Question : (a) How does a structure differ from an array? (b) Describe how a structure differs from a union? (c) Declare a union called ‘clothes' which consists of the

write a function named "fact"that takes one integer arguments,call them "num" and returns as ..............

programme for time table in c++

There is a pebble merchant. He sells the pebbles, that are used for shining the floor. His main duty is to take the length of the room’s sides. But he sometimes mistakes doing that

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

The #undef Directive This directive undefines a previously explained macro. For, example the following will give an error since PI is undefined.                 #define PI 3

Problem : (a) Stacks can be implemented using arrays. Write down the following C or C++ function to (i) create a stack (ii) add an element to a stack (push). (b) Expl

Define the Char Data Type of C Language? The char defines characters. The char type will usually require only 1 byte of internal storage. Every char type has an equivalent inte

This is what I need help with. "Create a program creates an interface allowing the user to select from some other programs I have made one being a money converter and the other ca