ABSTRACT

Fortran supports some features similar to the features of an object-oriented programming language. This chapter explains about object and its properties. The world around us contains a number of objects, such as animals, plants, rivers and mountains. Also, around us there are millions of man-made objects like buildings, computers and cars. An object is a software model of a real object consisting of data and procedures. The object is based on a template consisting of data and procedures. An object is treated as a single unit consisting of data and procedure that operate on the data. Objects of same type maintain their private copy of instance variables, but they use same instance methods. A variable is called polymorphic if its data type may vary during the execution of the program. It is a pointer or an allocated variable or a dummy data object.