How many methods is too many in a class?

Some people recommend that 200 lines is a good limit for a class – not a method, or as few as 50-60 lines (in Ben Nadel’s Object Calisthenics exercise)and that a class should consist of “less than 10” or “not more than 20 ” methods.

Sizin İçin Seçtik  How many classes are too many in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *