As emphatic as it may sound, this is not something that we get out of the box with plain object orientation.
这是为重点的听起来,不我们走出与普通对象定位框的东西。
Plain object orientation makes it possible to use any derived classes in places where the parent class is expected.
平原对象定位使得在父类别预计的地方使用派生的任何类。
Incidentally, enabling AOP within plain object-oriented languages is one example of using metadata for language extension.
顺便说一下,在纯面向对象的语言中启用AOP是使用元数据进行语言扩展的一个例子。
应用推荐