Skip to main content
added 1 characters in body
Source Link
user1249
user1249

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.

Source Link
user1249
user1249

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.