不过你可以这么做,当你在创建一个新类的时候可以先尝试组合,因为它更简单而且灵活。
Instead, you should first look to composition when creating new classes, since it is simpler and more flexible.
可以创建一个新类XmlDictionaryIO,该类继承由DictionaryIO设置的接口,但覆盖其中一些功能。
You can create a new class XmlDictionaryIO that inherits the interface laid down by DictionaryIO, but overrides some of its functionality.
在CHStats . body . php内,创建一个新类CHStats,这个新类扩展了specialpage类。
In CHStats.body.php, you create a new class, CHStats, which extends the SpecialPage class.
Now I have the ability to say, I've got a new class, I can create instances of a line segment, and it's elements are themselves instances of points. OK?
这就是我们要讲模块化的地方了,现在我可以说,我创建了一个新类,我可以创建线段的实例了,这些实例的元素?
应用推荐