软件专业毕业论文外文文献中英文翻译 Object landscapes and lifetimesTechnically, OOP is just about abstract data typing, inheritance, and polymorphism, but other issues can be at least as important
The remainder of this section will cover these issues
One of the most important factors is the way objects are created and destroyed
Where is the data for an object and how is the lifetime of the object controlled
There are different philosophies at work here
C++ takes the approach that control of efficiency is the most important issue, so it gives the programmer a choice
For maximum run-time speed, the storage and lifetime can be determined while the program is being written, by placing the objects on the stack (these are sometimes called automatic or scoped variables) or in the static storage area
This pl