3 ms·
Only sorta! From the article: > Since private names are only available inside the class which defines them, the test must also occur inside the class So code
by kjeetgill 6y ago
Only sorta! From the article:
> Since private names are only available inside the class which defines them, the test must also occur inside the class
So code in other classes can't introduce dependance on this atleast. It's not any pickier than checking the class of an object, but only within the class itself. It's a narrower footgun that I'd first considered it to be.