Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • +1, I agree, and added another answer complementing with more properties. I think the fluent API is clearer to understand when you have more than 1 single property as an example. Commented Aug 17, 2012 at 1:27
  • I like fluent interfaces, especially for builders that produce immutable objects! The more parameters, the better this works. But looking at the specific example in this question, I'm guessing that setText() is defined on the Action class that MyAction inherits from. It likely already has a void return type. Commented Jun 24, 2016 at 18:16