这些专用的方法包括对象的分配,存储单元分配以及初始化。
These special methods include allocation, deallocation, and initialization of objects.
代码中有一些对可变的系统事件(比如说内存警告和存储单元分配)的回调。
There are some callbacks for variable system events such as memory warnings and the de-allocation.
大多数情况下,垃圾收集确实消除了显式资源存储单元分配(explicit resource deallocation)的必要(在以后的专栏中我将讨论一些例外)。
Garbage collection does indeed obviate the need for explicit resource deallocation, most of the time. (I'll discuss some exceptions in a future column.)
应用推荐