Y
Hacker News
new
|
ask
|
show
|
jobs
by
skybrian
2436 days ago
Yes, that usually would work, but it's more error-prone than composition, because there may be calls in the base class to the method you overrode. You could even inadvertently create infinite recursion.