Memory Allocation

When is memory allocated for a function of a class? Is it when the program is complied, or only when the function is called?

Questions by bhavna123   answers by bhavna123

Showing Answers 1 - 9 of 9 Answers

wlochaty

  • Jan 19th, 2011
 

Memory will be alocated during compilation but when there is no objects of the class than no memory may be allocated. Compiler may (not must) do some optimalizations when there is no instances of the class (no funcion call).

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions