State one difference between a template class and class template.



State one difference between a template class and class template...

Answer / Arvind Kumar Singh

"Template class": A fully-implemented class with empty methods or functions that need to be specialized by the user. The implementation is provided by the programmer but not compiled until it's instantiated. "Class Template": A type of class in C++, similar to a regular class but allows parameters during instantiation, enabling the creation of classes for different data types without code duplication."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

How is final different from finally and finalize?

1 Answers  


What is volatile data type?

1 Answers  


what is difference between prepare stetement and callable starement with example?

1 Answers   CMC,


Is java call by reference?

1 Answers  


Can an integer be null java?

1 Answers  


Is it possible to use string in the switch case?

1 Answers  


When is the finalize() called? What is the purpose of finalization?

1 Answers  


What is the difference between exception and error in java?

1 Answers  


How does class forname work in java?

1 Answers  


What is the benefit of abstract class?

1 Answers  


What do you understand by a Static Variable?

1 Answers   CGI,


what do you meant by Platform-Independent?

6 Answers   Persistent,


Categories