Spec-Zone.ru › Octave 9

34.6 classdef Классы

Начиная с версии 4.0, Octave поддерживает classdef классы в ограниченном объёме. В отличие от упомянутых выше классов, называемых в этом разделе классами старого стиля, classdef классы можно определить в одном m-файле. Другие нововведения classdef классов:

  • права доступа к свойствам и методам,
  • статические методы, то есть методы, не зависящие от объекта, и
  • различие между классами-значениями и классами-ссылками.

В будущих версиях Octave необходимо добавить несколько возможностей, чтобы обеспечить полную совместимость с MATLAB. Обзор недостающих возможностей можно найти на странице https://wiki.octave.org/Classdef.

  • Создание класса classdef
  • Свойства
  • Методы
  • Наследование
  • Классы-значения и классы-ссылки

© 1996–2026 The Octave Project Developers
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://docs.octave.org/v9.4.0/classdef-Classes.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API