• Access from anywhere to public components of the class.

    任意位置到类公共组件接入

    youdao

  • It's reasonable to follow common object-oriented programming practices and have getters and setters in the public interface, but within a class you should always access fields directly.

    通常根据面向对象语言实践公共接口中使用GettersSetters道理的,一个字段经常访问中宜采用直接访问。

    youdao

  • Because clone has protected access in Object and, to call clone , you have to call it through a reference to a class that has overridden clone to be public.

    因为cloneObject中是保护访问的,调用clone必须通过将clone改写公共访问的引用完成。

    youdao

  • In other words, it's the class in the Web service code with public methods that users can access.

    话说,就是Web服务代码带有用户访问的public方法

    youdao

  • A well-designed CherryPy class will probably have only a few public methods exposed to Web clients, but it may have many internal methods a client shouldn't be allowed to access directly.

    一个设计良好CherryPy可能只有少数几个公有方法暴露Web客户机但是它很可能许多允许客户机直接访问内部方法。

    youdao

  • Only when an external class or object needs to access an attribute should you make the appropriate getter or setter public.

    只有外部对象需要访问属性时,使相应gettersetter公有。

    youdao

  • That's why the Vehicle class, and its subclasses, have either private or protected fields, and public setter and getter methods to provide access.

    正是Vehicle及其子类具有 private或者protected属性publicsettergetter方法访问属性的原因。

    youdao

  • You want to limit access to a method of a public class to member of the same class. Which access modifier accomlishes this objective?

    如果某个公共方法仅限于由同一个类的成员访问采用哪个访问修饰字实现一目的呢?

    youdao

  • The following example shows how to help protect a public class for limited access by requiring that callers be signed with a particular strong name.

    以下范例显示如何要求特定强式名称签名呼叫端协助保护公用类别受到限制存取

    youdao

  • The following example shows how to help protect a public class for limited access by requiring that callers be signed with a particular strong name.

    以下范例显示如何要求特定强式名称签名呼叫端协助保护公用类别受到限制存取

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定