metaclass
常見例句
- A metaclass, again, has a class description.
同樣地,一個元類也有類描述。 - In practice, then, we can do without a separate concept of metaclass.
那么,實(shí)際上不用一個單獨(dú)的元類概念我們也能做到這一切。 - Class descriptions with the same set of methods are the objects of a metaclass.
同一組方法的類描述就是元類的對象。 - A metaclass as such is a class and, therefore, has a class description.
如此一個元類也是一個類,因此有自己的類描述。 - More classes in the same metaclass can be created just by sending new() to the metaclass description.
通過傳送'''new()'''方法給元類描述,就可以創(chuàng)建該元類下更多別的類。 - For the implementation of respondsTo() a method is passed to a metaclass constructor as a triple selector/tag/method.
respondTo()的實(shí)現(xiàn)是傳入一個選擇器、標(biāo)記、方法組成的三元組作為元類構(gòu)造函數(shù)的參數(shù)。 返回 metaclass