MATLAB Object-Oriented Programming

(Joyce) #1
The constructor can save input arguments in property values. For example, a Color class
can specify a Red enumeration member color with three (Red, Green, Blue) values:

enumeration
Red (1,0,0)
end

See Also


Related Examples



  • “Enumeration Class Restrictions” on page 14-27

  • “Enumerations Derived from Built-In Types” on page 14-28

  • “Enumerations That Encapsulate Data” on page 14-41


14 Enumerations

Free download pdf