Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
The problem with static method comes the moment you need a sub-class.
Static methods cannot be overridenoverridden in sub-classes, hence your new classes cannot provide new implementations of the methods, making them less useful.
The problem with static method comes the moment you need a sub-class.
Static methods cannot be overriden in sub-classes, hence your new classes cannot provide new implementations of the methods, making them less useful.
The problem with static method comes the moment you need a sub-class.
Static methods cannot be overridden in sub-classes, hence your new classes cannot provide new implementations of the methods, making them less useful.