From: Grzegorz J. <ja...@he...> - 2004-03-17 03:27:21
|
Let's move it off the list to private discussion. BR Grzegorz On Tue, 16 Mar 2004, SF Markus Elfring wrote: > > > 3.2 There are several classes with the same methods "What" and > > > "Translate". Why were they not moved into another base class like > > > "Translatable" or "Typeof" that would be used for multiple inheritance > > > together with the class "NonLeaf"? > > > > These methods are not the same. Each of them has different implementation. > > How can you move them to a base class? > > > > Perhaps you mean moving the interface to separate base class, e.g.: > > > > class [whatever] > > { > > virtual int What() = 0; > > }; > > > > is this what you mean? > > Yes. Also: virtual int Translate() = 0; > Is this refacoring okay for you? Those classes can not be seen with "value semantics" after it. > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Opencxx-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opencxx-users > > ################################################################## # Grzegorz Jakacki Huada Electronic Design # # Senior Engineer, CAD Dept. 1 Gaojiayuan, Chaoyang # # tel. +86-10-64365577 x2074 Beijing 100015, China # # Copyright (C) 2004 Grzegorz Jakacki, HED. All Rights Reserved. # ################################################################## |