Filter löschen
Filter löschen

Create a value object which is a subclass of a value super class

1 Ansicht (letzte 30 Tage)
JFz
JFz am 24 Mär. 2016
Kommentiert: Adam am 24 Mär. 2016
Hi,
I have value class A and its two subclasses BA and CA (all are value classes). I create an instance BA and CA with ba = BA; ca = CA.
Some how, ba's super class properties (in A) get updated to be the same as in CA.' How is this possible? All of them are value classes. so ba and ca should be independent of each other.
Would any one explain this? Thanks.
Jennifer
  2 Kommentare
Steven Lord
Steven Lord am 24 Mär. 2016
Please show SMALL sample classes A, BA, and CA with which you can reproduce this behavior.
Adam
Adam am 24 Mär. 2016
What are the properties? If the properties themselves are handle-derived objects then this could cause that behaviour.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Graphics Object Programming finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by