Advanced C++
Q71 / 100

What is the Curiously Recurring Template Pattern (CRTP)?

Correct! Well done.

Incorrect.

The correct answer is B) A technique where a derived class is passed as a template argument to its own base class, enabling static polymorphism

B

Correct Answer

A technique where a derived class is passed as a template argument to its own base class, enabling static polymorphism

Explanation

template<class T> class Base { }; class Derived : public Base<Derived> { }; enables the base to call derived methods without virtual dispatch overhead.

Progress
71/100