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
2017-12-19
Can you show classA's classdef line as well?
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Class Syntax and File Organization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!