Mastering C++: A Comprehensive Quiz Based on 'Thinking in C++'

Disable ads (and more) with a membership for a one time $2.99 payment

Test your C++ skills with our quiz based on Bruce Eckel's 'Thinking in C++'. Dive into object-oriented programming, advanced topics, and fundamentals. Perfect for learners and experts alike. Assess your knowledge and become a C++ master!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


Which feature allows class definitions to manipulate one or more unspecified types in C++?

  1. Inheritance

  2. Polymorphism

  3. Templates

  4. Interfaces

The correct answer is: Templates

Templates allow class definitions to manipulate one or more unspecified types in C++. Inheritance (A) is the mechanism for inheriting properties and behavior from parent classes. Polymorphism (B) refers to the ability of an object to take on multiple forms. Interfaces (D) provide a set of method signatures that a class must implement, but do not allow for the manipulation of unspecified types.