Why are references to instance methods stored in each instance object rather than in the class object?
问题 From what I understand, each instance of a class stores references to the instance's methods. I thought, in concept, all instances of a class have the same instance methods. If so, both memory savings and logical clarity seem to suggest that instance methods should be stored in the class object rather than the instance object (with the instance object looking them up through the class object; of course, each instance has a reference to its class). Why is this not done? A secondary question.