Navigation

Operators and Keywords

Function List:

C++ API

: display (obj)

Display the contents of the object obj.

The Octave interpreter calls the display function whenever it needs to present a class on-screen. Typically, this would be a statement which does not end in a semicolon to suppress output. For example:

myobj = myclass (…)

User-defined classes should overload the display method so that something useful is printed for a class object. Otherwise, Octave will report only that the object is an instance of its class.

myobj = myclass (…)
  ⇒ myobj = <class myclass>

See also: class, subsref, subsasgn.

Package: octave