Object
An object is an instance of a class stored in a set of memory locations.
Related concepts: ClassTypeValue
Closest Wikipedia entry: Object-oriented programming — Object-oriented programming (OOP) is a programming paradigm based on the concept of objects, which can contain data and code: data in the form of fields (often known as attributes or properties), and code in the form of procedures (often known as methods). A common feature of objects is that methods are attached to them and can access and modify the object's data fields. In this brand of OOP, there is usually a special name such as this or self used to refer to the current object.
Misconceptions about Object35 documented Misconceptions
Check YourselfAccessingInexistentPropertyError — JavaScript
Accessing a non existent property on an object produces an errorAssignmentCopiesObject — Java
Assignment copies the objectAssignmentCopiesObject — JavaScript
Assignment copies the objectAssignmentCopiesObject — Python
Assignment copies the objectBoxedNull — Java
Passing null to a wrapper class constructor creates an object representing the absence of a valueChainedMethodsNotCalledFromOutside — Java
Chained methods are all called on the object at the beginning of the chainEqualityOperatorComparesListIdentities — Scratch
(list a) = (list b) compares the identities of list a and list bEqualityOperatorComparesObjectsValues — Java
o==p compares the objects referred to by variables o and pEqualityOperatorComparesObjectsValues — JavaScript
The equality operator compares two objects' valuesEqualsComparesReferences — Java
o.equals(p) compares the references stored in the variables o and pFrameIsClassInstance — Java
A stack frame is the same as an instance of a classIdentifierAsStringInBracketNotation — JavaScript
An identifier used to access a property with the bracket notation is treated as a stringMethodAsField — Java
Each object contains its own special fields for all of its methodsMultiReferenceVariable — Java
A reference variable can point to multiple objectsNestedObjectsImplyNestedClasses — Java
If objects are part of a containment hierarchy, their classes are nested, tooNoBracketNotationForObjects — JavaScript
Square brackets cannot be used to access properties of an objectNoFieldInheritance — Java
An object contains only the fields declared in its classNoFieldlessObjects — Java
Objects without instance variables can't existNoGlobalObject — JavaScript
There isn't a global objectNoInsideMethodCallInConstructor — Java
It is foirbidden to call other methods on the same object while inside its constructorNullIsObject — Java
null is an objectNullIsObject — JavaScript
null is an objectObjectAsParameterIsCopied — JavaScript
Objects are passed by valueObjectLabeledWithConstructorSignature — Java
In stack and heap diagrams, an object on the heap is labeled like a stack frame of a constructor callObjectLabeledWithVariableName — Java
In stack and heap diagrams, an object on the heap is labeled with the name of the variable that refers to itObjectsMustBeNamed — Python
A variable is needed to instantiate an objectPrimitiveIsObject — Java
Primitive values are heap objectsReferenceLabeledWithDynamicType — Java
In stack and heap diagrams, reference variables are labeled with the types of the objects they refer toSuperclassObjectAllocated — Java
When instantiating an object of a subclass, an object of a superclass is also allocatedThisAsField — Java
this is a special field in the objectThisAssignable — Java
One can assign to thisThisAssignable — JavaScript
One can assign to thisThisExistsInStaticMethod — Java
this is a local variable, also in static methodsVariablesHoldObjects — Java
A variable of a reference type contains a whole objectVariablesHoldObjects — Python
A variable contains a whole object