problem with inheritance of CCNode

I have a question.
if I write my custom Layer which inherited from CCLayer, i need to add LAYER_NODE_FUNC(myLayer); in my class declaration,
so when I write my custom object which inherited from CCNode, what code I should add when I want to invoke node() function in my custom object class.
Thanks for all your help.