We shall examine the Object-Oriented Approach (OOA) in programming, describe its properties, and compare it with the earlier programming concepts: procedural, structural, and modular. We examine the applications of the OOA to the problems of the mechanics of nonhomogeneous media. The classes and the objects for the solution of these problems are described.