Matlab static variable that can be modified by super class and sub class?
Mostra commenti meno recenti
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?
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Subclass Definition in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!