metaclass
常見例句
- A metaclass, again, has a class description.
同樣地,一個(gè)元類也有類描述。 - In practice, then, we can do without a separate concept of metaclass.
那麼,實(shí)際上不用一個(gè)單獨(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.
如此一個(gè)元類也是一個(gè)類,因此有自己的類描述。 - 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)是傳入一個(gè)選擇器、標(biāo)記、方法組成的三元組作爲(wèi)元類搆造函數(shù)的蓡數(shù)。 返回 metaclass