DISINHERIT

DISINHERIT

Top  Previous  Next

 

The DISINHERIT statement used in a class module removes an inherited object.

 

 

Format

 

DISINHERIT object

 

where

 

objectis the object variable previously used in an INHERIT statement.

 

 

The DISINHERIT statement removes a previously inherited object from the name search used when locating the variable or public function/subroutine for an object reference.

 

 

See also:

Object oriented programming, CLASS, INHERIT, OBJECT(), OBJINFO(), PRIVATE, PUBLIC.