针对科学与工程计算广为使用的Fortran 90不支持面向对象编程,新推出的Fortran 2003虽支持但相应的编译器还没有开发出来的现实情况,提出利用Fortran 90的现代语言特征,来模拟C++主要面向对象特性:封装、继承和多态性,以间接实现面向对象编程.与C++的对照开发实例表明,这种模拟是成功的,从而为提高大型Fortran计算程序的重用性和可维护性提供了一种有效方法,并为应对Fortran 2003面向对象编程积累了经验.
In view of the existing situation that object-oriented programming is not supported in Fortran 90, extensively used in scientific and engineering computing; and no supporting compiler of Fortran 2003 is available, it is put forward that the most important object-oriented features (encapsulation, inheritance and run-time polymorphism) of C++ can be emulated with new tools of Fortran 90, indirectly accomplishing object-oriented programming. Development of Fortran C++ examples has proved that the above emulation is workable so as to provide an effective method for improving reuse and maintenance of large-scale Fortran application and experience for future object-oriented programming in Fortran 2003.