Field
A field is a variable that is a member of a class and may be part of an object.
Related concepts: VariableMemberClassObject
Closest Wikipedia entry: Field (computer science) — In data hierarchy, a field (data field) is a variable in a record. A record, also known as a data structure, allows logically related data to be identified by a single name. Identifying related data as a single group is central to the construction of understandable computer programs.
Misconceptions about Field21 documented Misconceptions
Check YourselfAccessingInexistentPropertyError — JavaScript
Accessing a non existent property on an object produces an errorAddMemberAtRuntime — Java
Set of class members can change at runtimeArrayHasLengthMethod — Java
To get the length of an array, one needs to call its length methodCannotChainAttributeToObjectInstantiation — Python
Method calls, and attribute accesses in general, cannot be chained to a constructor invocation.CannotChainMemberAccesses — Java
Member accesses cannot be chained togetherCannotChainMemberToConstructor — Java
Method calls or field accesses cannot be chained to a constructor invocationConstructorParameterIsField — Java
Formal constructor parameters are equivalent to instance variablesIdentifierAsStringInBracketNotation — 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 methodsMustInitializeFieldInConstructor — Java
Constructors must assign values to all fieldsNoBracketNotationForObjects — 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 existNoMethodInheritance — Java
Subclasses inherit fields but not methodsPrivateAccessibleInSubclass — Java
Private members of a superclass are accessible from a subclassPrivateFieldsImplyImmutability — Java
A class where all fields are private is immutablePrivateMeansFinal — Java
A private field cannot be changedRightToLeftChaining — Java
Chained accesses are invoked from right to leftRightToLeftChaining — Python
Chained accesses are invoked from right to leftStringLengthField — Java
One can know the length of a String object by accessing its length fieldThisAsField — Java
this is a special field in the object