フィルターのクリア

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

1 回表示 (過去 30 日間)
JFz
JFz 2016 年 3 月 24 日
コメント済み: Adam 2016 年 3 月 24 日
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 件のコメント
Steven Lord
Steven Lord 2016 年 3 月 24 日
Please show SMALL sample classes A, BA, and CA with which you can reproduce this behavior.
Adam
Adam 2016 年 3 月 24 日
What are the properties? If the properties themselves are handle-derived objects then this could cause that behaviour.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeSoftware Development Tools についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by