issubclass

버전 1.0.0.0 (1.58 KB) 작성자: Jesse Hopkins
Determines if a class is a subclass of another class.
다운로드 수: 235
업데이트 날짜: 2012/1/20

라이선스 보기

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);

인용 양식

Jesse Hopkins (2024). issubclass (https://www.mathworks.com/matlabcentral/fileexchange/34706-issubclass), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2010b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
태그 태그 추가
oop

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0