The first and most important addition was access protection for methods and instance variables on classes -- the public, protected, and private keywords.
第一个也是最重要的新特性是针对类的方法和实例变量的访问保护 ——public、protected 和private 关键字。
The actual class that represents an .aspx page in action is an instance of a class that derives from Page; hence, it can call into protected methods.
真正代表一个 .aspx活动页面的类是从Page派生的一个类的实例;因此,它能够调入受保护的方法。
The actual class that represents an .aspx page in action is an instance of a class that derives from Page; hence, it can call into protected methods.
真正代表一个 .aspx活动页面的类是从Page派生的一个类的实例;因此,它能够调入受保护的方法。
应用推荐