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!

Practice this question and more.


What is the process of creating a new class from an existing class by adding new members or functions called?

  1. Specialization

  2. Polymorphism

  3. Encapsulation

  4. Modification

The correct answer is: Specialization

Specialization is the correct term for creating a new class from an existing one by adding new members or functions. This process provides a level of specificity to the newly created class, allowing for it to differ from its parent class while still inheriting its properties. It is not polimorphism as this refers to the ability of an object to take on different forms or behaviors, it is not encapsulation as this refers to the concept of bundling data and methods together, and it is not modification as this implies changing an existing class rather than creating a new one.