inherit from two classes simscape

What is the syntax to inherit from two superclasses in Simscape?

2 Commenti

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
In simscape it does not work, but thanks.

Accedi per commentare.

Risposte (2)

J Chen
J Chen il 2 Ott 2019
Try the following:
component MyComponent < MyBaseComponent1
% component implementation here
end
component MyExtendedComponent < MyComponent
% component implementation here
end

1 Commento

It is a bit awkward and Im not sure it will do the job. But I will try it.
Thanks

Accedi per commentare.

Categorie

Prodotti

Release

R2019a

Richiesto:

il 18 Set 2019

Community Treasure Hunt

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

Start Hunting!

Translated by