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

2 views (last 30 days)
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

Answers (0)

Categories

Find more on Construct and Work with Object Arrays in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!