Matlab static variable that can be modified by super class and sub class?
Afficher commentaires plus anciens
I have following structure where I have a superclass and two subclasses
classdef A
properties
staticvar
end
end
And two subclasses of A
classdef B < A
properties
end
end
classdef C < A
properties
end
end
Is there a way I can use "staticvar" such that the "staticvar" value can be modified by any of the classes and its value is reflected when accessed by any of the class?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Subclass Definition dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!