English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

4 answers

In all object-oriented programming, an instance is an object, where an object is a particular implementation of a class/

2007-03-13 15:38:47 · answer #1 · answered by Anonymous · 0 1

JavaScript is a prototypal language. Everything is an object, so an instance is simply shorthand for saying an instance of an object, and any instance of an object is also a variable (either global, local, or member). Even functions are objects, hence also variables (i.e. function doSomething() is simply a variable called doSomething that is a Function object).

2007-03-14 00:01:23 · answer #2 · answered by Rex M 6 · 0 0

I think you're talking about the instance of a Class, yes? If that is true then...

Think of a Class as a blueprint. Objects can be created from that blueprint, but then can be modified to meet a specific need or a desired design. This Object is known as an instance of the Class.

An object variable is a reference to an object, not the Object itself.

I hope this helps.

2007-03-13 22:28:28 · answer #3 · answered by US_Programmer 2 · 1 1

yes
edit: woops
once again, i thought it said java, *slinks away in shame*

2007-03-13 22:21:00 · answer #4 · answered by Anonymous · 1 1

fedest.com, questions and answers