필터 지우기
필터 지우기

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 CenterFile Exchange에서 Software Development Tools에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by