# Call to a method in other class

**URL:** <https://forum.kirupa.com/t/call-to-a-method-in-other-class/331052>\
**Category:** Uncategorized\
**Created:** [May 4, 2013, 8:02am UTC](https://forum.kirupa.com/t/call-to-a-method-in-other-class/331052 "2013-05-04T08:02:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaayanRos](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@MaayanRos](https://forum.kirupa.com/u/MaayanRos)\
**Post date:** [May 4, 2013, 8:02am UTC](https://forum.kirupa.com/t/call-to-a-method-in-other-class/331052/1 "2013-05-04T08:02:33Z")

</div>

hi,  
I tried to call a method in my document class- I wrote my Documant class.Method.  
but i got the error - “call to a possibly undefined method through a reference with static type class.” i saw in the forum that my method in the document class should be static, but then i got the error - “udefined property \_myBtn” - \_myBtn is an object of my btn class that from there i call to a method in my document class…  
Thanks in advance!
