Perl: the Markov chain saw | |
PerlMonks |
Re: Be grateful for Perl OOby John M. Dlugosz (Monsignor) |
on Jan 28, 2003 at 17:26 UTC ( [id://230658]=note: 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 Section
Meditations
|
|