good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Class_A and Class_B share an interface, but not a base class
If you can't factor out the interface as a base class because you're not allowed to touch the code, just use a template. Since all the functions have the same signature (that is, no parameters) you can use pointers to member functions in C++. In reply to Re: Be grateful for Perl OO
by John M. Dlugosz
|
|