In a class template, the keyword _______ is used to create an instance of the template.
- class
- new
- template
- typename
In C++, when defining a class template, the "template" keyword is used. This keyword precedes the class definition and indicates to the compiler that it's a template definition. When creating an instance of the class template, you'll provide specific types for the template parameters, but the definition itself begins with "template".
Loading...
Related Quiz
- In C++, _______ functions cannot be virtual.
- What is the primary purpose of a constructor in a class?
- Imagine you are developing a Graphic Design Application where different types of shapes are drawn. Which OOP concept will simplify the code?
- In a graphics rendering engine, you need to store RGB color values. Which data type would be most appropriate for each color channel to balance memory usage and color depth?
- What is the role of the return statement in a lambda function?