Re: GObject singleton.
- From: Stefan Kost <ensonic hora-obscura de>
- To: Uzytkownik <uzytkownik22 gazeta pl>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: GObject singleton.
- Date: Thu, 08 Sep 2005 08:58:04 +0200
hi,
Uzytkownik wrote:
I have class A(abstract), which is singleton. It have subclasses called
B, C and D.
Is it possible that create class B overload "static" A methods?
If A is abstract, than the default virtual methods will just have a
g_return_if_reached()
and a subclass not overloading the abstract methods will fail at runtime.
Something like:
mylib_b_init();
mylib_a_do_something(); //mylib_b_do_something
I prefer that user (it's library) can create next subclass.
Regards
Stefan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]