
![]() | To illustrate how to handle class hierarchies, we add a subclass:
class HelloWorld2 : public HelloWorld
{
public:
void gets(double& s_) const;
};
void HelloWorld2:: gets(double& s_) const { s_ = s; }
i.e., we have a function with an output argument
|
![]() | Note: gets should return the value when called from Python |
![]() | Files: HelloWorld2.h, HelloWorld2.cpp |