1.

Which is known as a generic class?(a) Abstract class(b) Final class(c) Template class(d) Efficient CodeThe question was asked in an interview.My doubt stems from Classes topic in section OOPs Concept & Features of Object Oriented Programming

Answer» CORRECT option is (c) Template class

To explain: Template classes are known to be generic classes because those can be used for any data TYPE value and the same class can be used for all the variables of DIFFERENT data types.


Discussion

No Comment Found

Related InterviewSolutions