W3cubDocs

/Octave

34.6 classdef Classes

Since version 4.0, Octave has limited support for classdef classes. In contrast to the aforementioned classes, called old style classes in this section, classdef classes can be defined within a single m-file. Other innovations of classdef classes are:

  • access rights for properties and methods,
  • static methods, i.e., methods that are independent of an object, and
  • the distinction between value and handle classes.

Several features have to be added in future versions of Octave to be fully compatible to MATLAB. An overview of what is missing can be found at https://wiki.octave.org/Classdef.

© 1996–2018 John W. Eaton
Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.
Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions.
https://octave.org/doc/interpreter/classdef-Classes.html