1.

A template class defines the form of a class _____________________ it will operate.(a) With full specification of the data on which(b) With full specification of the functions on which(c) Without full specification of the data on which(d) Without full specification of the functions on whichI had been asked this question in an internship interview.Question is taken from Template Class topic in portion Classes of Object Oriented Programming

Answer»

Right ANSWER is (c) WITHOUT full specification of the data on which

The BEST I can explain: The template classes can ACCEPT all types of data types. There is no need to specify the data on which the class has to operate. Hence it gives US flexibility to code without worrying about the type of data that might be used in the code.



Discussion

No Comment Found

Related InterviewSolutions