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
#include int main() { int T; int N; int i; scanf("%d",&T)

char P[100]; double X=533.8*22500; sprintf(P,"%f %u",X,(unsigned int)X); MessageBox(P,"SSS"); //12010500.000 12010499

C program to Print Fibonacci series upto n using recursion: int fibo(long int); void main() {                 long int a=0,n;                 printf ("how many term

Problem: (a) Describe a linked list. (b) Explain the three different types of linked list with the help of diagrams. (c) Give two advantages and two disadvantages o

write aprogram in c++ to overload +,-,=,++ operator using unary and friend function in a single program

Aim: To implement a program for dynamic data structure(linked list). Code:                       class node {             int data;             node *next;

c-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   #include float start_point, /

solve for radius(R) of a circle of its area is to be inputted by a user. also display compute the circle diameter hint: area= pir21 pi=2.1416

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

Write a ''C'' program to accept any 3 digit integer number from the keyboard and display the word equivalent representation of the given number