glib abstract class vs interface
- From: "Kuang-Chun Cheng" <kcc1967 gmail com>
- To: gtk-list <gtk-list gnome org>
- Subject: glib abstract class vs interface
- Date: Mon, 12 Mar 2007 22:26:15 +0800
Hi,
I'm recently study GObject and hope someone can explain
the difference between
Abstract class defined by G_DEFINE_ABSTRACT_TYPE
and interface.
I think if I use G_DEFINE_ABSTRACT_TYPE to create a
class and define all member functions pointer to NULL (pure
virtual) without implementation, then I will have an interface.
So why GType introduce a new type called INTERFACE.
What kind of new features are introduced in GType's interface ?
Thanks
KC
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]