Jump to content

Virtual method

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Cgs (talk | contribs) at 12:28, 12 September 2003 (Decent definition - needs more). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

In object oriented programming a virtual method is a method that when overidden by a superclass will be used by the base class. Normally when a method is overridden only the superclass will use the overidden method, and the base will continue to use the orignal.

Virtual methods are implemented with a virtual method table.