inherit from two classes simscape
1 回表示 (過去 30 日間)
古いコメントを表示
What is the syntax to inherit from two superclasses in Simscape?
2 件のコメント
Adam
2019 年 10 月 2 日
Does the usual dual inheritance syntax not work in Simscape (I have no idea what that is as I don't use it)?
classdef myClass < superclass1 & superclass2
回答 (2 件)
J Chen
2019 年 10 月 2 日
Try the following:
component MyComponent < MyBaseComponent1
% component implementation here
end
component MyExtendedComponent < MyComponent
% component implementation here
end
Srimouli Rukmabhatla
2020 年 4 月 1 日
Hi LEO,
For more information please go through the documentation of Subclassing and Inheritance https://www.mathworks.com/help/physmod/simscape/lang/subclassing-and-inheritance.html
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Foundation and Custom Domains についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!