Error while inheriting InferiorClasses attributes in classdef

Hello, I would like that my subclass B inherits the InferiorClasses attribute from its superclass A. But it throws the following error : 'InferiorClasses' must be a meta.class handle or a cell array of meta.class handles. I am not sure to understand what I am doing wrong. Thank you for your help.
classdef (InferiorClasses = meta.class.fromName('classA').InferiorClasses) classB < classA
properties
end
methods
end
end

1 件のコメント

Steven Lord
Steven Lord 2017 年 12 月 19 日
Can you show classA's classdef line as well?

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeConstruct and Work with Object Arrays についてさらに検索

タグ

質問済み:

2017 年 12 月 19 日

コメント済み:

2017 年 12 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by