What is the syntax to use explicit class specialization?
A. template <int> class myClass<>{ }
B. template <int> class myClass<int>{ }
C. template <> class myClass<>{ }
D. template <> class myClass<int>{ }
Answer: d
Explanation: The class specialization is creation of explicit specialization of a generic class. We have to use template<> constructor for this to work. It works in the same way as with explicit function specialization.