memory usage in oops [duplicate]
Possible Duplicate:
will changing all code to object oriented m开发者_如何学JAVAake memory usage bigger or smaller?
Hi all, Is it true that object oriented programs takes more memory than procedural?
No, it is not true. I would advise not listening to the person who told you that.
No, the amount of memory you allocate is the amount of memory used.
There are languages that use Garbage collectors and JIT compilers that use extra memory (C#, Java), but that's just language specific and has nothing much to do with the fact that they are OOP.
精彩评论