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)

Authoritative Definition

Wikipedia does not necessarily offer the best fitting definition of a concept. The exact meaning we attribute to the concept of Field is based on principled authoritative sources such as:

Misconceptions about Field
22 documented Misconceptions

Check Yourself
Misconception
AddMemberAtRuntime — Java
Set of class members can change at runtime
Misconception
ArrayHasLengthMethod — Java
To get the length of an array, one needs to call its length method
Misconception
CannotChainMemberAccesses — Java
Member accesses cannot be chained together
Misconception
CannotChainMemberToConstructor — Java
Method calls or field accesses cannot be chained to a constructor invocation
Misconception
ConstructorParameterIsField — Java
Formal constructor parameters are equivalent to instance variables
Misconception
MethodAsField — Java
Each object contains its own special fields for all of its methods
Misconception
MustInitializeFieldInConstructor — Java
Constructors must assign values to all fields
Misconception
NoFieldInheritance — Java
An object contains only the fields declared in its class
Misconception
NoFieldlessObjects — Java
Objects without instance variables can't exist
Misconception
NoMethodInheritance — Java
Subclasses inherit fields but not methods
Misconception
PrivateAccessibleInSubclass — Java
Private members of a superclass are accessible from a subclass
Misconception
PrivateFieldsImplyImmutability — Java
A class where all fields are private is immutable
Misconception
PrivateMeansFinal — Java
A private field cannot be changed
Misconception
RightToLeftChaining — Java
Chained accesses are invoked from right to left
Misconception
StringLengthField — Java
One can know the length of a String object by accessing its length field
Misconception
ThisAsField — Java
this is a special field in the object
Misconception
AccessingInexistentPropertyError — JavaScript
Accessing a non existent property on an object produces an error
Misconception
IdentifierAsStringInBracketNotation — JavaScript
An identifier used to access a property with the bracket notation is treated as a string
Misconception
NoBracketNotationForObjects — JavaScript
Square brackets cannot be used to access properties of an object
Misconception
CannotChainAttributeAccesses — Python
Attribute accesses cannot be chained together
Misconception
CannotChainAttributeToObjectInstantiation — Python
Method calls, and attribute accesses in general, cannot be chained to a constructor invocation.
Misconception
RightToLeftChaining — Python
Chained accesses are invoked from right to left