An in-depth dive into the implications of getters and setters, and how not using them might end up costing billions of dollars in the case of major companies.

  • MysteriousSophon21
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    Getters/setters are just a band-aid for poor object design - true encapsulation means objects should expose behavior not state, otherwise your just making glorified structs with extra steps.