From: Kevin S. <kev...@ho...> - 2001-08-17 23:55:49
|
On Sat, 18 Aug 2001, Takaaki Tateishi wrote: > I've tried to implement the above class, but some problems are found. > if we implement classes RBFL_Xxxx and RBFL_Yyyy, RBFL_Yyyy is a subclass > of the class RBFL_Xxxx, we obtain the following class hierarchy. > > Fl_Xxxxx -------> RBFL_Xxxxx > | > | > V > Fl_Yyyyy -------> RBFL_Yyyyy That seems fine, as long as we don't need RBFL_Yyyyy to inherit from RBLF_Xxxxx. I thought about this some, and couldn't think of a reason we needed it. > class RBFl_Yyyy : public Fl_Yyyy, public RBFl_Xxxx { > ... > } Do we need our wrappers to inherit from each other? If not, I'd prefer to avoid having parallel hierarchies. > I prefer short name. how about `RBFLXxx'? Sounds good to me. Kevin |