views:

20

answers:

1

Perhaps I'm just not using the right Google-age. But I am trying to remember what the term is for when you return the object from one of it members to enable you to do something similar:

class obj {
    obj function method()
    {
        return this
    }
}

obj->method()->method()->method()->method()

I used to know this but it has totally escaped me.

+2  A: 

Method chaining 1, 2

Anurag
Thanks, Fluent Interface was the term I was after. Method chaining was the key to finding it in search though.
thepearson
Glad you found it.
Anurag