When is a template better solution than a base class??
Answer Posted / mayank kumar
as template is in form of generic class and generic
function so here the class and function works for all. also
in template we can change the data type of function
parameter as well as of the data member present in class.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What is the difference between strcpy() and strncpy()?
What relational operators if statements in c++?
What is a manipulative person?
Why do we need function?
How come you find out if a linked-list is a cycle or not?
Is oops and c++ same?
Is eclipse good for c++?
What is the use of volatile variable?
What is meant by the term name mangling in c++?
What do you mean by persistent and non persistent objects?
What is a dll entry point?
Why do we use setw in c++?
Why do we use vector in c++?
Where is atoi defined?
What are vectors used for in c++?