Skip to Main Content Skip to Search
Product Documentation

superclasses - Superclass names

Syntax

superclasses('ClassName')
superclasses(obj)
s = superclasses(...)

Description

superclasses('ClassName') displays the names of all visible superclasses of the MATLAB class with the name ClassName. Visible classes have a Hidden attribute value of false (the default).

superclasses(obj) obj is an instance of a MATLAB class. obj can be either a scalar object or an array of objects.

s = superclasses(...) returns the superclass names in a cell array of strings.

Examples

Get the name of the hgsetget class superclass:

superclasses('hgsetget')

Superclasses for class hgsetget:

    handle

See Also

classdef | events | methods | properties

Tutorials

  


Free MATLAB Interactive Kit

Explore how to use MATLAB to make advancements in engineering and science.


Download free kit

Trials Available

Try the latest version of MATLAB and other MathWorks products.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS