出典:Wikipedia
出典:『Wikipedia』 (2011/06/13 14:25 UTC 版)
Call super is a code smell or anti-pattern of object-oriented programming. Call super is a design pattern in which a particular class stipulates that in a derived subclass, the user is required to override a method and call back the overridden function itself at a particular point. The overridden method may be intentionally incomplete, and reliant on the overriding method to augment its functionality in a prescribed manner. However, the fact that the language itself may not be able to enforce all conditions prescribed on this call is what makes this an anti-pattern.