When is a template better solution than a base class??
Answer Posted / faruk
1.when you are designing a generic class to contain or otherwise manage objects of other types.
2.when the format and behaviour of those other types are unimportant to their containment or management.
3.particularly when those other types are unknown.
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
How do you add an element to a set in c++?
What is the benefit of learning c++?
Is it possible to have a recursive inline function in c++?
What is the two main roles of operating system?
What is srand c++?
What is split a string in c++?
Write a program using display() function which takes two arguments.
Is c++ a low level language?
Define macro.
int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}
Where must the declaration of a friend function appear?
Define the process of handling in case of destructor failure?
What is c++ flowchart?
Write about a nested class and mention its use?
Which is best c++ or java?