The cohesion calculation should also be for classes that contain either no methods or only static, class or abstract methods, because the cohesion will be 0 %. This is annoying when dealing with abstract classes that will implement methods on subclasses.
The cohesion calculation should also be for classes that contain either no methods or only static, class or abstract methods, because the cohesion will be 0 %. This is annoying when dealing with abstract classes that will implement methods on subclasses.