Hi I was wondering would someone have the answers to these questions or/and know where I could find a decent resource that would explain the area properly.
When i dynamically create an object of a certain class, memory is allocated for it on the heap, that bit I know, what I am trying to find out is firstly what is contained in this block of memory? Are the member variable stored there, am trying to find out are the objects functions stored there or as i think is the case, as many objects of the same type can be created, are the functions themselves stored in one place and each individual object has a pointer to them, if so where are they stored and are the local variables of these methods just stored on the stack when they are in scope.
Any help would be greatly appreciated as I am a complete newbie to this area and can only find basic information on the net which doesnt explain the above.
Thanks in Advance,
John
When i dynamically create an object of a certain class, memory is allocated for it on the heap, that bit I know, what I am trying to find out is firstly what is contained in this block of memory? Are the member variable stored there, am trying to find out are the objects functions stored there or as i think is the case, as many objects of the same type can be created, are the functions themselves stored in one place and each individual object has a pointer to them, if so where are they stored and are the local variables of these methods just stored on the stack when they are in scope.
Any help would be greatly appreciated as I am a complete newbie to this area and can only find basic information on the net which doesnt explain the above.
Thanks in Advance,
John