Static should not be abused, but in some situations it is worth using, you should use static methods to provide factory methods or helper methods that are not directly related to the instance object.
A static approach is worth every time you want to perform an action or present data related to a class and not an instance of an object, so the approach of using a static should not be avoided at all, but only used when it is really necessary.
As in most situations, there is no absolute answer to your question (avoid or do not use static), it depends on the context, however you should not abuse static ...
source share