MATLAB Object-Oriented Programming

(Joyce) #1

Class Attributes


In this section...
“Specifying Class Attributes” on page 6-6
“Specifying Attributes” on page 6-8
“Class-Specific Attributes” on page 6-9

Specifying Class Attributes


All classes support the attributes listed in the following table. Attributes enable you to
modify the behavior of class. Attribute values apply to the class defined within the
classdef block.

classdef (Attribute1 = value1, Attribute2 = value2,...) ClassName
...
end

For more information on attribute syntax, see “Attribute Specification” on page 5-22.

6 Defining and Organizing Classes

Free download pdf