When we tell objects are created in heap memory and referenced in stack memory. The reference to the Objects are in stack but where do the Instance variables lie. Does each object have a collection on the heap memory? And does the function call add on to the main stack?? In short I'd like to know the memory allocation of a program like this
An overview of how all the memory allocation happens in an inheritence program.