Re: GObject question



On Tue, Dec 26, 2006 at 03:34:40PM +0100, Tomasz Jankowski wrote:
Can someone explain me, what abstract classes are and where I can use them?

Abstract clases are those you cannot create instances of.

If it does not make any sense to create instances of some
class, often because the actual functionality is defined by
subclasses, you make it abstract.

For example GtkContainer is abstract -- you can create
GtkHBoxes, GtkWindows, GtkTables, GtkLayouts, etc. but it
makes no sense to create instances of GtkContainer,
therefore it is also impossible.

Yeti


--
Whatever.



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