Re: Multiple inheritance

New Message Reply Date view Thread view Subject view Author view

David Plew (kishore++at++aimnet.com)
Tue, 16 Dec 1997 10:00:04 -0800 (PST)


> Hi PfC++ pros,
>I have been deriving classes from Performer for quite a while but never tried
>multiple inheritance because I eard somewhere that Performer can handle single
>inheritance only. Is this true, or are there any special concerns in doing so.
inheritance only. Is this true, or are there any special concerns in doing so.
>
>class myClass : public pfTexture, public myOtherClass
>{
>...
>};

What I have done is as follows:

class myOtherClass : public pfTexture
{

}

class myClass : public myOtherClass
{

}

But offcourse the above makes sens if you don't mind deriving myOtherClass
from pfTexture. In this case, you have to define each on'e 'init()'
function properly.

hope this helps

-anita
kishore++at++triavest.com
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:56:25 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.