MATLAB Object-Oriented Programming

(Joyce) #1

  • Argument passed to first superclass constructor

  • No arguments passed to subsequent constructors


function obj = Bool(val)
obj@logical(val)
obj@MyBool
end

See Also


Related Examples



  • “Refer to Enumerations” on page 14-11

  • “Operations on Enumerations” on page 14-19


14 Enumerations

Free download pdf