3 ms·
Eh, most of the time, if you use private, what you really wanted was protected. Private causes extensibility issues (no access to private fields in child class
by zdragnar 4y ago
Eh, most of the time, if you use private, what you really wanted was protected.
Private causes extensibility issues (no access to private fields in child classes). Not sure if the article addressed this or not because it's currently hugged to death.
- SwiftyBug 4y agoIt does.
- pwdisswordfishc 4y agoNo, most of the time, if I use private, what I really wanted is private. And it does exactly what I want. So speak for yourself. Protected plus subclassing is just poor man's dependency injection; entirely dispensable.
- mst 4y agohttps://archive.ph/ffvTF https://archive.ph/ffvTF