필터 지우기
필터 지우기

How could I access the object from its property in an OOP

조회 수: 1 (최근 30일)
Hadi Hajieghrary
Hadi Hajieghrary 2014년 2월 5일
Hello,
I Have define two object. On handle object,and another object is beeng passed to the handle object as its properties. Assume like a handle object of Field, which includes some Robot-objects bounded to it as its property. Now, in a method inside the Robot Class I want to access some property of the field, like its dimension. Is there any way which does not includes definning a global variable?
Thank you,
Hadi Hajieghrary

답변 (0개)

카테고리

Help CenterFile Exchange에서 Construct and Work with Object Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by