开发者

memory usage in oops [duplicate]

开发者 https://www.devze.com 2023-02-14 19:19 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: will changing all code to object oriented m开发者_如何学JAVAake memory usage bigger or smaller?
This question already has answers here: Closed 11 years ago.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消