In spite of some languages, e.g. PHP or Java, some languages don’t have (top-level) static classes. However, the concept is still present. A class consisting entirely of static methods is effectively the same thing as a static class.
Besides, static classes are procedural, and their clients are untestable — well, there are some hacks in Java and PHP, but I don’t want to mention them. Because they have even more issues.
from DZone.com Feed https://ift.tt/2wkp3oq
No comments:
Post a Comment