C++

On forcing all derived classes to implement a specific non-virtual method, part 1 -- Raymond Chen

Raymond Chen has published the first part of a series on forcing derived C++ classes to implement a required non-virtual method without relying on comments or runtime assertions. The approach leaves the method unimplemented in the base class, so a missing implementation is caught at compile time. Chen illustrates it with a OneWayConverter base class for IValueConverter that fails ConvertBack() and requires derived classes to supply Convert(), showing how C++/WRL, C++/WinRT and plain C++ each handle the case.

AI-written summary, checked against the cited sources. How summaries work

Read at isocpp.org