Re: GObject singleton.



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]