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

1 次查看(过去 30 天)
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