摘要:
Creating a Singleton Instance Some classes of the Foundation and AppKit frameworks create singleton objects. In a strict implementation, a singleton i 阅读全文
摘要:
1、Object-C有多继承吗?没有的话用什么代替? cocoa 中所有的类都是NSObject 的子类 多继承在这里是用protocol 委托代理 来实现的你不用去考虑繁琐的多继承 ,虚基类的概念.ood的多态特性 在 obj-c 中通过委托来实现. 2、Object-C有私有方法吗?私有变量呢? 阅读全文