These are called getters and setters and they are used to isolate the
variable from direct public access.

for more info read the following:

http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=basic_as_139_08.html

HTH,

-Ravi

On Jun 9, 12:55 pm, Yogesh Gaur <[email protected]> wrote:
> i need a help .. in some example i saw the function was written in
> this way ... code is as follows :
>
> public function get hasNodes(): Boolean {
>
> <some code
> ... ... ...
> ........  >
>
> }/*function ends here */
>
> what i dont understand is "get" in the function defination ... do any
> of u hav any idea
>
> ..the author of the later defined a fucntion in the code as follow
>
> public function set hasNodes(): Boolean {
>
> <some code
> ... ... ...
> ........  >
>
> }/*function ends here */
>
> here only thing change it get to set...its cofusing me ..
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to