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
List the features of oops in c++?
What are the 2 main types of data structures?
What is an associative container in c++?
Explain static and dynamic memory allocation with an example each.
What is the main function c++?
Explain about vectors in c ++?
Define the process of error-handling in case of constructor failure?
How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?
Is c++ the best programming language?
Write a program to add three numbers in C++ utilizing classes.
What is meaning of in c++?
what you know about c++?
What is & in c++ function?
What is a wchar_t in c++?
What is c++ vb?