Difference between revisions of "Gambas/syntax/variables/classes/virtual"
Jump to navigation
Jump to search
m (Woozle moved page Gambas/virtual class to Gambas/syntax/variables/classes/virtual: reorganizing) |
(an official quote about virtual classes) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | == | + | ==About== |
− | In [[Gambas]], a | + | In [[Gambas]], a '''virtual class''' is a class containing one or more [[abstract method]]s (which Gambas calls "virtual methods"), i.e. methods whose [[method interface|interface]] has been defined but whose [[method implementation|implementation]] has not been. "A virtual class is an hidden pseudo-class that you cannot explicitly manipulate." [http://gambaswiki.org/wiki/doc/object-model] |
− | + | Gambas virtual classes are always named beginning with a "." (e.g. ".ListViewItem") except when being invoked as the ancestor of another class (i.e. using the "{{l/sub|inherits|Gambas}}" keyword). | |
− | |||
− |
Latest revision as of 11:26, 13 May 2015
About
In Gambas, a virtual class is a class containing one or more abstract methods (which Gambas calls "virtual methods"), i.e. methods whose interface has been defined but whose implementation has not been. "A virtual class is an hidden pseudo-class that you cannot explicitly manipulate." [1]
Gambas virtual classes are always named beginning with a "." (e.g. ".ListViewItem") except when being invoked as the ancestor of another class (i.e. using the "inherits" keyword).