Code covered by the BSD License  

Highlights from
issubclass

Be the first to rate this file! 2 Downloads (last 30 days) File Size: 1.58 KB File ID: #34706

issubclass

by Jesse Hopkins

 

20 Jan 2012

Determines if a class is a subclass of another class.

| Watch this File

File Information
Description

tf = issubclass(SubClassName,SuperClassName)
Returns true if the specified "SubClassName" is a subclass of
the class specified by "SuperClassName", otherwise returns false.

  Inputs:
     SubClassName: string. Name of the "Sub Class" that you are testing
                   to see if it was inherited from the specified
                   "SuperClass"

     SuperClassName: string. Name of the "Super Class" that you are
                    testing to see if the sub-class was inherited from

 Output:
    tf: logical, true if "SubClassName" is in fact a subclass of "SuperClassName"
                    
Examples:
>> tf = issubclass('MySubClass','MySuperClass')

>> x = MySubClass;
>> y = MySuperClass;
>> tf = issubclass(class(x),class(y);

MATLAB release MATLAB 7.11 (R2010b)
Tags for This File  
Everyone's Tags
oop
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.

Contact us