Re: Multiple inheritance



On Sat, 2006-01-07 at 21:30 -0500, jalqadir netscape net wrote:
> I am writing a class that must inherit from Gtk::VBox and Gtk::Entry,
> however, the compiler complains about this saying:
> In file included from ../jme/gtkmmwidget/gtkmmwidget.cpp:2:
> ../jme/gtkmmwidget/gtkmmwidget.hpp:21: error: no unique final
> overrider for `virtual void Glib::ObjectBase::destroy_notify_()' in
> `jme::TextEntry'
> ../jme/gtkmmwidget/gtkmmwidget.hpp:21: error: no unique final
> overrider for `virtual void Glib::ObjectBase::set_manage()' in
> `jme::TextEntry'
> ../jme/gtkmmwidget/gtkmmwidget.hpp:21: error: no unique final
> overrider for `virtual void Glib::ObjectBase::destroy_notify_()' in
> `jme::TextEntry'
> ../jme/gtkmmwidget/gtkmmwidget.hpp:21: error: no unique final
> overrider for `virtual void Glib::ObjectBase::set_manage()' in
> `jme::TextEntry'
> make.exe: *** [../jme/gtkmmwidget/gtkmmwidget.o] Error 1
> Execution terminated
>  
> -- snip --
> class TextEntry : public Gtk::VBox, public Gtk::Entry{...};
> -- end of snip --
> 
> What am I doing wrogn?

a widget that IS-A VBox and IS-A Entry makes absolutely no sense.
I suspect you want a widget that IS-A VBox and HAS-A Entry. Or vice
versa.

--p





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]