网站首页  英汉词典

请输入您要查询的英文单词:

 

单词 Instance method
释义

Instance method

中文百科

方法 (计算机科学) Method (computer programming)

(重定向自Instance method)

在面向对象编程中,方法英语:method)指的是类别(所谓的类别方法静态方法工厂方法)、或者是对象(所谓的实体方法)两者其中之一的一种子程序。如同进程化编程语言的进程,一个方法通常以一系列的语句所组成,并以之完成一个动作。其可以借由输入一组参数以制订所需的动作,且一部分的方法可能会有输出值(所谓的返回值)。方法的目的是提供一个机制,以访问(对于读和写)对象或类别的私有数据保存区。

英语百科

Method (computer programming) 方法 (电脑科学)

(重定向自Instance method)

A method (or message) in object-oriented programming (OOP) is a procedure associated with an object. An object is made up of data and behavior, which form the interface that an object presents to the outside world. Data is represented as properties of the object and behavior as methods. For example, a Window object would have methods such as open and close, while its state (whether it is opened or closed) would be a property.

随便看

 

英汉网英语在线翻译词典收录了3779314条英语词汇在线翻译词条,基本涵盖了全部常用英语词汇的中英文双语翻译及用法,是英语学习的有利工具。

 

Copyright © 2004-2024 encnc.com All Rights Reserved
更新时间:2025/6/19 12:53:29