Instance variable
http://dbpedia.org/resource/Instance_variable an entity of type: Thing
Una variable d'instància o membre de dada en programació orientada a objectes és una variable que es relaciona amb una única d'una classe.
rdf:langString
클래스가 있는 객체 지향 프로그래밍에서 인스턴스 변수(instance variable)는 클래스(예: 멤버 변수)에 정의된 변수로, 이를 위해 각각의 인스턴스화된 클래스의 객체가 별도의 사본이나 인스턴스를 가지고 있다. 인스턴스 변수는 클래스 변수와 비슷하다. 인스턴스 변수는 클래스 변수가 아니지만 유사점이 있다. 클래스 속성(클래스 프로퍼티, 필드, 데이터 멤버)의 일종이다. 인스턴스와 클래스 멤버 간에 동일한 이분법이 메소드(멤버 함수)에도 적용되며, 클래스는 인스턴스 메소드와 클래스 메소드를 둘 다 소유할 수 있다. 각 인스턴스 변수는 오브젝트의 소유 기간 동안 메모리에 상주한다. 변수는 오브젝트가 자기 자신을 알고 있는 속성이다. 오브젝트의 모든 인스턴스들은 자신만의 인스턴스 변수의 사본을 가지고 있으며, 값이 객체마다 동일하다고 하더라도 그러하다. 하나의 객체 인스턴스는 다른 모든 인스턴스에 영향을 미치지 않고서도 인스턴스 변수들의 값을 바꿀 수 있다. 인스턴스 변수들은 메소드가 정적으로 선언되어 있지 않은 경우 모든 클래스 메소드들에 의해 사용될 수 있다.
rdf:langString
In class-based, object-oriented programming, an instance variable is a variable defined in a class (i.e. a member variable), for which each instantiated object of the class has a separate copy, or instance. An instance variable has similarities with a class variable, but is non-static.An instance variable is a variable which is declared in a class but outside of constructors, methods, or blocks. Instance variables are created when an object is instantiated, and are accessible to all the constructors, methods, or blocks in the class. Access modifiers can be given to the instance variable.
rdf:langString
En programación orientada a objetos, una variable de instancia o miembro de dato es una variable que se relaciona con una única instancia de una clase. Cada vez que se crea un objeto, el sistema crea una copia de todas las variables, (atributos), que están vinculadas con dicha clase, haciéndolas propias de esa instancia, (objeto). Solamente se puede acceder a ellas a través del identificador del objeto.
rdf:langString
En programmation orientée objet, une variable d'instance est une variable contenant l'état d'un objet, aussi appelée attribut. Une variable d’instance précise l'état d'un objet auquel elle se réfère. Deux objets différents, même appartenant à la même classe, peuvent avoir des valeurs différentes dans leurs variables d’instance respectives. De l’extérieur de l’objet, les variables d’instance ne peuvent être ni altérées ni même vues (autrement dit les variables d’instance ne sont jamais publiques), sauf par des méthodes explicitement fournies par le programmeur. Comme les variables globales, les variables d’instance ont la valeur « null » jusqu’à ce qu’elles soient initialisées.
rdf:langString
Nei linguaggi di programmazione orientati agli oggetti, una variabile d'istanza è una variabile associata a una classe di oggetti e che rappresenta un elemento dell'informazione contenuta nell'oggetto stesso. Le variabili d'istanza possono essere usate, per esempio, per rappresentare gli attributi concettuali del tipo di oggetti descritto dalla classe (per questo motivo, le variabili d'istanza vengono talvolta chiamate impropriamente attributi): Esempio: Una classe Automobile potrebbe avere una variabile d'istanza chiamata targa.
rdf:langString
インスタンス変数 (instance variable) とは、Smalltalk等のオブジェクト指向言語において、オブジェクトのインスタンスごとに割り当てられた変数のことである。フィールド (field)、データメンバ (data member)、メンバ変数 (member variable) とも呼ばれる。それに対してクラス変数は、同じクラスに対する全てのインスタンスが同じ値を共有する。 インスタンス変数は、インスタンスフィールド (instance field) あるいは、略して「フィールド」と呼ぶこともある (本来、この「フィールド」の意味には、「クラス変数」も含まれるが、プログラミング言語によってはインスタンス変数のことを「フィールド」と呼び、クラス変数とは名前を区別しているものもある)。UMLではインスタンス変数のことを属性 (attribute) とも呼ぶ。 Javaのクラスを用いた例を示す。 class Foo { String bar; static String baz;} 上記の例において、barはクラスFooのインスタンス変数である。それに対して、bazはクラス変数である。以下のプログラムで、Fooクラスを用いてクラス変数とインスタンス変数の違いを示す。 プログラム例: 実行結果:
rdf:langString
rdf:langString
Variable d'instància
rdf:langString
Variable de instancia
rdf:langString
Variable d'instance
rdf:langString
Instance variable
rdf:langString
Variabile di istanza
rdf:langString
インスタンス変数
rdf:langString
인스턴스 변수
xsd:integer
169629
xsd:integer
1107357132
rdf:langString
Una variable d'instància o membre de dada en programació orientada a objectes és una variable que es relaciona amb una única d'una classe.
rdf:langString
En programación orientada a objetos, una variable de instancia o miembro de dato es una variable que se relaciona con una única instancia de una clase. Cada vez que se crea un objeto, el sistema crea una copia de todas las variables, (atributos), que están vinculadas con dicha clase, haciéndolas propias de esa instancia, (objeto). Solamente se puede acceder a ellas a través del identificador del objeto. Estas variables son declaradas fuera del cuerpo de los métodos y dentro de la clase, por lo tanto son de tipo global. Por ende, pueden ser utilizadas por cualquier método no estático de dicha clase.
rdf:langString
In class-based, object-oriented programming, an instance variable is a variable defined in a class (i.e. a member variable), for which each instantiated object of the class has a separate copy, or instance. An instance variable has similarities with a class variable, but is non-static.An instance variable is a variable which is declared in a class but outside of constructors, methods, or blocks. Instance variables are created when an object is instantiated, and are accessible to all the constructors, methods, or blocks in the class. Access modifiers can be given to the instance variable. An instance variable is not a class variable although there are similarities. It is a type of class attribute (or class property, field, or data member). The same dichotomy between instance and class members applies to methods ("member functions") as well; a class may have both instance methods and class methods. Each instance variable lives in memory for the lifetime of the object it is owned by. Variables are properties an object knows about itself. All instances of an object have their own copies of instance variables, even if the value is the same from one object to another. One object instance can change values of its instance variables without affecting all other instances. Instance variables can be used by all methods of a class unless the method is declared as static.
rdf:langString
En programmation orientée objet, une variable d'instance est une variable contenant l'état d'un objet, aussi appelée attribut. Une variable d’instance précise l'état d'un objet auquel elle se réfère. Deux objets différents, même appartenant à la même classe, peuvent avoir des valeurs différentes dans leurs variables d’instance respectives. De l’extérieur de l’objet, les variables d’instance ne peuvent être ni altérées ni même vues (autrement dit les variables d’instance ne sont jamais publiques), sauf par des méthodes explicitement fournies par le programmeur. Comme les variables globales, les variables d’instance ont la valeur « null » jusqu’à ce qu’elles soient initialisées. En règle générale les variables d’instance n’ont pas à être déclarées. Cela donne une structure d’objets extrêmement souple. En fait, chaque variable d’instance est dynamiquement ajoutée à l’objet au moment de sa première invocation. Elle s'oppose à la variable de classe, appelée aussi variable statique.
* Portail de l’informatique
rdf:langString
インスタンス変数 (instance variable) とは、Smalltalk等のオブジェクト指向言語において、オブジェクトのインスタンスごとに割り当てられた変数のことである。フィールド (field)、データメンバ (data member)、メンバ変数 (member variable) とも呼ばれる。それに対してクラス変数は、同じクラスに対する全てのインスタンスが同じ値を共有する。 インスタンス変数は、インスタンスフィールド (instance field) あるいは、略して「フィールド」と呼ぶこともある (本来、この「フィールド」の意味には、「クラス変数」も含まれるが、プログラミング言語によってはインスタンス変数のことを「フィールド」と呼び、クラス変数とは名前を区別しているものもある)。UMLではインスタンス変数のことを属性 (attribute) とも呼ぶ。 Javaのクラスを用いた例を示す。 class Foo { String bar; static String baz;} 上記の例において、barはクラスFooのインスタンス変数である。それに対して、bazはクラス変数である。以下のプログラムで、Fooクラスを用いてクラス変数とインスタンス変数の違いを示す。 プログラム例: class TestFoo { public static void main(String [] args) { Foo foo1 = new Foo; Foo foo2 = new Foo; foo1.bar = "foo1.bar"; // foo1.bar (インスタンス変数) に"foo1.bar"を代入 foo1.baz = "foo1.baz"; // foo1.baz (クラス変数) に"foo1.baz"を代入 foo2.bar = "foo2.bar"; // foo2.bar (インスタンス変数) に"foo2.bar"を代入 foo2.baz = "foo2.baz"; // foo2.baz (クラス変数) に"foo2.baz"を代入 System.out.println("foo1.bar=" + foo1.bar + " foo1.baz=" + foo1.baz); System.out.println("foo2.bar=" + foo2.bar + " foo2.baz=" + foo2.baz); }} 実行結果: foo1.bar=foo1.bar foo1.baz=foo2.bazfoo2.bar=foo2.bar foo2.baz=foo2.baz 上記のプログラムにおいて、foo1.bazとfoo2.bazはFooクラスのクラス変数を表している。つまり、foo1.bazとfoo2.bazが表しているインスタンスは同一である。そのため、結果として出力されるfoo1.bazとfoo2.bazの値は同じとなる。逆に、foo1.barとfoo2.barはインスタンス変数であり、独立した変数である。そのため、結果として出力されるfoo1.barとfoo2.barは異なった値となる。
rdf:langString
Nei linguaggi di programmazione orientati agli oggetti, una variabile d'istanza è una variabile associata a una classe di oggetti e che rappresenta un elemento dell'informazione contenuta nell'oggetto stesso. Le variabili d'istanza possono essere usate, per esempio, per rappresentare gli attributi concettuali del tipo di oggetti descritto dalla classe (per questo motivo, le variabili d'istanza vengono talvolta chiamate impropriamente attributi): Esempio: Una classe Automobile potrebbe avere una variabile d'istanza chiamata targa. Il nome "variabile d'istanza" enfatizza il fatto che la variabile è da considerarsi istanziata (replicata) in ciascuno degli oggetti della classe. Esempio: Se la classe Automobile contiene una variabile d'istanza targa, ogni oggetto di classe automobile avrà una propria targa, distinta da quella delle altre automobili. Il tempo di vita di una istanza di variabile d'istanza coincide in genere con quello dell'oggetto che la contiene. La visibilità delle variabili d'istanza coincide in genere con la classe in cui sono definite, secondo il principio dell'information hiding. Nei linguaggi a oggetti, le variabili d'istanza si distinguono da altri generi di variabili, come le (o "di classe") e le definite all'interno dei metodi. L'analogia più stretta con i concetti della programmazione procedurale (tradizionale) è con i campi di un tipo di dato strutturato (per esempio, una struct dei linguaggi derivati dal C).
rdf:langString
클래스가 있는 객체 지향 프로그래밍에서 인스턴스 변수(instance variable)는 클래스(예: 멤버 변수)에 정의된 변수로, 이를 위해 각각의 인스턴스화된 클래스의 객체가 별도의 사본이나 인스턴스를 가지고 있다. 인스턴스 변수는 클래스 변수와 비슷하다. 인스턴스 변수는 클래스 변수가 아니지만 유사점이 있다. 클래스 속성(클래스 프로퍼티, 필드, 데이터 멤버)의 일종이다. 인스턴스와 클래스 멤버 간에 동일한 이분법이 메소드(멤버 함수)에도 적용되며, 클래스는 인스턴스 메소드와 클래스 메소드를 둘 다 소유할 수 있다. 각 인스턴스 변수는 오브젝트의 소유 기간 동안 메모리에 상주한다. 변수는 오브젝트가 자기 자신을 알고 있는 속성이다. 오브젝트의 모든 인스턴스들은 자신만의 인스턴스 변수의 사본을 가지고 있으며, 값이 객체마다 동일하다고 하더라도 그러하다. 하나의 객체 인스턴스는 다른 모든 인스턴스에 영향을 미치지 않고서도 인스턴스 변수들의 값을 바꿀 수 있다. 인스턴스 변수들은 메소드가 정적으로 선언되어 있지 않은 경우 모든 클래스 메소드들에 의해 사용될 수 있다.
xsd:nonNegativeInteger
4089