3 ms·
It gets really tricky when you have any kind of polymorphism, intended or not. If you accept instances of your own class as arguments to a method, you may be t
by spankalee 9y ago
It gets really tricky when you have any kind of polymorphism, intended or not.
If you accept instances of your own class as arguments to a method, you may be templated to think you can access the private fields of those arguments, even if instanceof checks pass, but they may not be there.