필터 지우기
필터 지우기

How do I call a method of a containing class when adding a dynamic property?

조회 수: 4 (최근 30일)
problem:
I have a class C. There exists a method of C that adds dynamic properties that are objects of C.
every time C.add(C1) is called, I want it to trigger a method in C. In addition, I want this to also work for nested properties:
so if an object C has a (dynamic property) C1, which has another dynamic prop called C2, adding C2 to C.C1 should call a method in C.
Another solution to this problem is if I could find parents of dynamic properties -- anyone know how this can be done?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Whos에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by