3 ms·
For the 'best practice' to work, you'd have to make your object accept an interface, in order to be able to accept one with the overridden function that you wan
by lawpoop 11y ago
For the 'best practice' to work, you'd have to make your object accept an interface, in order to be able to accept one with the overridden function that you want, correct?
I think this is the problem with the received-but-not-understood wisdom -- the implementers don't actually use an interface but hard-code the class that has the method, so it's not any more over-rideable than a regular function call.