From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,aae01e0853bff01c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-17 11:16:02 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: hyrosen@mail.com (Hyman Rosen) Newsgroups: comp.lang.ada Subject: Re: Should MI be supported (was: Can MI be supported?) Date: 17 Sep 2003 11:16:00 -0700 Organization: http://groups.google.com/ Message-ID: <568ede3c.0309171016.6a713736@posting.google.com> References: NNTP-Posting-Host: 204.253.248.214 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1063822561 17879 127.0.0.1 (17 Sep 2003 18:16:01 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 17 Sep 2003 18:16:01 GMT Xref: archiver1.google.com comp.lang.ada:42631 Date: 2003-09-17T18:16:01+00:00 List-Id: Matthew Heaney wrote in message news:... > Hyman: Is there a way to do that in C++? Can you publicly inhterit from > ColorableType and privately inherit from ColorableAdapterType? Yes. I could have said struct MyObject : private ColorableAdapter, private ResizableAdapter, public virtual Colorable, public virtual Resizable { }; The interface methods all have a "unique final overrider" (in the language of the C++ standard) so there is no ambiguity.