# Lil confused with classes and return functions

**URL:** <https://forum.kirupa.com/t/lil-confused-with-classes-and-return-functions/243165>\
**Category:** flash\
**Created:** [November 3, 2007, 6:32pm UTC](https://forum.kirupa.com/t/lil-confused-with-classes-and-return-functions/243165 "2007-11-03T18:32:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kingscooty](https://avatars.discourse-cdn.com/v4/letter/k/73ab20/32.png) [@kingscooty](https://forum.kirupa.com/u/kingscooty)\
**Post date:** [November 3, 2007, 6:32pm UTC](https://forum.kirupa.com/t/lil-confused-with-classes-and-return-functions/243165/1 "2007-11-03T18:32:42Z")

</div>

Hey all can someone tell me why i recieve this in a trace

> 

function Function() {}

when i use this return function inside a custom class called Node:

[AS]  
public function getID():int  
{  
return id;  
} //get node ID  
[/AS]

I thought :

[AS]  
trace(node.getID);  
[/AS]

would work, but it’s giving me a wierd output 😕
