码迷,mamicode.com
首页 > Web开发 > 详细

metaClass

时间:2018-01-21 01:11:50      阅读:268      评论:0      收藏:0      [点我收藏+]

标签:i/o   creating   建立   ogr   strong   def   red   cts   配置   

In object-oriented programming, a metaclass is a class whose instances are classes. Just as an ordinary class defines the behavior of certain objects, a metaclass defines the behavior of certain classes and their instances.fa

 

元类定义了类的通用属性;

是类方法;

建立了类层面的依赖选择;

 

+ (Class)layerClass;                        // default is [CALayer class]. Used when creating the underlying layer for the view.

 

它配置的属性或者是根、或者是他的更上一层的抽象。

元类用于更改类的结构和行为。有缺省的结构。

metaClass

标签:i/o   creating   建立   ogr   strong   def   red   cts   配置   

原文地址:https://www.cnblogs.com/feng9exe/p/8322306.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!