MATLAB Object-Oriented Programming

(Joyce) #1

Technique How to Use in MATLAB


Named constants See “Define Class Properties with Constant Values” on page
15-2 and “Named Values” on page 14-2


Enumerations “Define Enumeration Classes” on page 14-5


Static methods “Static Methods” on page 9-32


Static properties Not supported. See persistent variables. For the
equivalent of Java static final or C++ static const
properties, use Constant properties. See “Define Class
Properties with Constant Values” on page 15-2


For mutable static data, see “Static Data” on page 4-2

Constructor “Class Constructor Methods” on page 9-21


Copy constructor No direct equivalent


Reference/reference
classes


“Comparison of Handle and Value Classes” on page 7-2

Abstract class/Interface “Abstract Classes” on page 12-91


Garbage collection “Object Lifecycle” on page 7-20


Instance properties “Dynamic Properties — Adding Properties to an Instance” on
page 8-69


Importing classes “Import Classes” on page 6-30


Events and Listeners “Event and Listener Concepts” on page 11-14


Comparison of MATLAB and Other OO Languages
Free download pdf