3 ms·
Also, within the context of an individual class, variables can be modified and accessed anywhere in the class, creating all the same problems as global variable
by colordrops 4y ago
Also, within the context of an individual class, variables can be modified and accessed anywhere in the class, creating all the same problems as global variables.
- bostonsre 4y agoIf the single responsibility principle is followed and cohesion is strong, it should help mitigate these concerns. Creating large uber classes can quickly become troublesome.