inherit from two classes simscape
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
What is the syntax to inherit from two superclasses in Simscape?
2 Kommentare
Adam
am 2 Okt. 2019
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
Antworten (2)
J Chen
am 2 Okt. 2019
Try the following:
component MyComponent < MyBaseComponent1
% component implementation here
end
component MyExtendedComponent < MyComponent
% component implementation here
end
Srimouli Rukmabhatla
am 1 Apr. 2020
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 Kommentare
Siehe auch
Kategorien
Mehr zu Foundation and Custom Domains finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!