The efficiency of object-oriented programs has become a point of great
interest, One necessary factor for program efficiency is the optimiza
tion techniques involved. This paper presents the performance of sever
al variations of a given C++ program and compares them with a version
that uses no object-oriented features, Our result indicates that some
object-oriented features in C++ are not well optimized in current C+compilers. We thus discuss some code optimization techniques that can
improve the efficiency based on the given C++ program.