[DGD] multiple inheritance

Erwin Harte harte at xs4all.nl
Fri Jan 10 17:48:39 CET 2003


On Fri, Jan 10, 2003 at 11:56:05AM -0500, John Moore wrote:
> Does dgd support tags for multiple inheritance?

Yup:

    http://dgd.is-here.com/faq-ng/html/faq.html#AEN513

    <...>

    /*
     * Inherit program "A" and label it as foo. 
     * Inherit program "B" and label it as bar.
     */
    inherit foo "A";
    inherit bar "B";

    void
    create() {
       /*
	* Call the create functions in programs "A" and "B" via their
 	* inheritance labels.
	*/
       foo::create();
       bar::create();
    }

Cheers,

Erwin.
-- 
Erwin Harte <harte at xs4all.nl>
_________________________________________________________________
List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list