Destructors cannot have parameters, they cannot have accessibility modifiers, and they cannot be invoked explicitly. The destructor for an instance is invoked automatically during garbage collection.
析构函数不能有参数,不能有访问级别修饰符,不能被显式调用。实例的析构函数在垃圾收集时自动调用。
Not all access modifiers can be used by all types or members in all contexts, and in some cases the accessibility of a type member is constrained by the accessibility of its containing type.
并非所有存取修饰词在任何情况下都可供所有型别或成员使用,而且在某些情况下,型别成员的存取范围会受到其包含型别的存取范围限制。
Access modifiers are keywords used to specify the declared accessibility of a member or a type.
存取修饰词是用于指定成员或型别之宣告存取范围的关键字。
应用推荐