Idea: Rule for “public void” method signatures

I don’t remember in which book I read this, but the book created a wrapper class for MenuItem that when calling a setter it would return the class itself. So I started thinking: Would it be a bad practice if every time I created a class I would replace a public void with a public MyClass? In other words, use this as a general rule. Why don’t we see?

Continue reading…

Posted by Panagiotis Peikidis on 09 Apr 2008 - 1 Comment »