What is it called when an object member returns the object, enabling you to string method calls?
Posted
by thepearson
on Stack Overflow
See other posts from Stack Overflow
or by thepearson
Published on 2010-06-15T11:50:39Z
Indexed on
2010/06/15
11:52 UTC
Read the original article
Hit count: 152
design-patterns
|programming
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.
© Stack Overflow or respective owner