Create the appropriate type of class for your application:
Value classes enable you to create new array classes that have the same semantics as numeric classes.
Handle classes define objects that reference the object data. Copying an object creates another reference to the same data.
For a discussion of how object users work with handle objects, see Using Handles.
||Abstract class for deriving handle classes|
||Derive handle classes with set and get methods|
||Require exact name match for set and get methods|
||Superclass for classes that support dynamic properties|
||Superclass providing copy functionality for handle objects|
||Create event listener|
||Notify listeners that event is occurring|
||Delete handle object|
||Find handle objects|
||Find meta.property object|
||Determine valid handles|
||Determine equality or sort handle objects|
Value objects are associated with a specific variable. Handle objects can be referenced by multiple variables.
Whether you implement a handle or value class depends on what your class represents and how you want objects to behave.
MATLAB® handle variables support reference semantics.
Find objects using regular expressions or obtain the
for specific properties.
Create a set/get interface for your handle class.
Customize object copy operations by deriving from
Limit the number of instances of a class that can exist using a singleton pattern.