methods in memory
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?
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement