cppSampleImplClass function
The sample module's C++ impl class (desktop platforms), matching the Swift/Kotlin sample impls.
Implementation
String cppSampleImplClass(String className) =>
'''class Hybrid${className}Impl final : public Hybrid$className {
public:
double add(double a, double b) override { return a + b; }
std::string getGreeting(const std::string& name) override { return "Hello, " + name + "!"; }
};''';