handle Class
Superclass of all handle classes
Description
The handle
class is the superclass for all classes that follow
handle semantics. A handle is an object that indirectly references its data. The
handle
class is abstract and cannot be directly instantiated.
To define a handle class, derive your class from handle
by declaring it
as a superclass in classdef
.
classdef MyHandleClass < handle ... end
Deriving from the handle
class enables your subclass to:
Inherit several useful methods (Handle Class Methods)
Define events and listeners (Events and Listeners Syntax)
Define dynamic properties (Dynamic Properties — Adding Properties to an Instance)
Implement set and get methods (Implement Set/Get Interface for Properties)
Customize copy behavior (Implement Copy for Handle Classes)
For information about using handle classes, see Handle Classes
Class Attributes
Abstract | true |
ConstructOnLoad | true |
HandleCompatible | true |
For information on class attributes, see Class Attributes.
Methods
Events
Event Name | Trigger | Event Data | Event Attributes |
---|---|---|---|
ObjectBeingDestroyed | Triggered when the handle object is about to be destroyed, but before calling the delete method. | event.EventData |
|
Examples
More About
Extended Capabilities
Version History
Introduced in R2008a