# Get and set method

**URL:** <https://forum.kirupa.com/t/get-and-set-method/323849>\
**Category:** Uncategorized\
**Created:** [July 21, 2011, 7:52am UTC](https://forum.kirupa.com/t/get-and-set-method/323849 "2011-07-21T07:52:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![soha\_20088](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@soha\_20088](https://forum.kirupa.com/u/soha_20088)\
**Post date:** [July 21, 2011, 7:52am UTC](https://forum.kirupa.com/t/get-and-set-method/323849/1 "2011-07-21T07:52:54Z")

</div>

Hi all,

Can somebody explain me how to use get and set method ??  
Is there any easy example for using this methods ??  
Can i use only the get method or both methods should use together ?  
Can i call the getter variable in any other class and how do i call it ?

-Soha
