DRAFT
MethodAsField
Incorrect
Each object contains its own special fields for all of its methods
Correct
Each object contains a special field referring to its class, and the class knows about its methods
CorrectionHere is what's right.
Here is what's right.
Objects contain fields (instance variables) that hold the state of the object. The methods are not stored in fields. The methods are not stored in the objects.
However, an object knows its class (e.g., through a special field in the object’s header), and the class knows about all the instance methods available to any of its instances.
Language
Java