Handle class, what does it mean?
5 ビュー (過去 30 日間)
古いコメントを表示
Regarding the _handle _class, you can see here that it mentions the following about this class: Objects that share references with other objects.
What does this mean?
Thanks.
0 件のコメント
採用された回答
Matt J
2012 年 10 月 7 日
It means that when you make a change to 1 handle object, any copies of it will feel the same change. So for example, suppose I had
classdef myclass<handle
properties
p;
end
end
Then I would get behavior like this:
>> handle1=myclass; handle2=handle1;
>> handle1.p=5; handle2.p
ans =
5
>> handle1.p=7; handle2.p
ans =
7
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Handle Classes についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!