methods in memory

Started by
1 comment, last by owl 21 years, 2 months ago
For c++ and/or Visual Basic. Is the machine code for the methods of a class stored in memory every time you instantiate an object of that class? Or is it stored just once no matter how many times you dinamically instantiate that object?
[size="2"]I like the Walrus best.
Advertisement
The machine code is stored once. It''s the context (the this pointer if you will) that allows the function to operate with different instances.
Thank you, I couldn''t remeber how that works.
[size="2"]I like the Walrus best.

This topic is closed to new replies.

Advertisement