Saved Bookmarks
| 1. |
What is the syntax to use explicit class specialization?(a) template class myClass{ }(b) template class myClass{ }(c) template class myClass{ }(d) template class myClass{ } |
|
Answer» Right choice is (d) template <> class myClass 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. |
|