Why we should not use static method?

Static methods are bad for testability . Since static methods belong to the class and not a particular instance, mocking them becomes difficult and dangerous. Overriding a static method is not that simple for some languages.

Sizin İçin Seçtik  Do all iPhone 12 have 5G antenna?

Leave a Reply

Your email address will not be published. Required fields are marked *