<< isglobal Variables nommage >>

Scilab Help >> Scilab > Variables > methods

methods

Get accessible methods of a classdef or an object

Syntax

methods(classdef)
methods(object)
meths = methods(classdef)
meths = methods(object)

Arguments

classdef

Classdef from which we want to retrieve the methods

object

Object from which we want to retrieve the methods

meths

a string matrix of accessible methods
If methods is called without output argument, the function only print list of methods.

Examples

classdef meths
    methods (public)
        function pub(), end
    end

    methods (protected)
        function prot(), end
    end

    methods (private)
        function priv(), end
    end
end

methods(meths)
l = methods(meths)
m = meths();
methods(m)
l = methods(m)

See also

History

VersionDescription
2026.0.0 methods introduction.

Report an issue
<< isglobal Variables nommage >>