Skip to main content
Number of methods per class

Limit the number of methods allow per each Apex class, to encourage good design.

Lorenzo Frattini avatar
Written by Lorenzo Frattini
Updated over 6 years ago

Rationale

The more methods a class has, the more complex it is. Large classes are often a symptom that  something in the code has grown so large that it cannot be effectively  handled.

Scope

  • Apex classes

Did this answer your question?