Procedure-Oriented Programming versus Objected-Oriented Programming (OOP)
Object-oriented versus procedure-oriented programming for a program that calculates the areas and perimeters of a square and a circle.
Procedure-oriented (structured) programs are built of functions (procedures) with each function handling a sub-problem of the problem the program is aiming to solve. Object-Oriented programs are composed of objects with each object made of data that describe its properties and functions (methods) that describe the operation it can perform. Some programming languages as C and Pascal support procedure-oriented programming while others as Java and C++ support object-oriented programming (OOP).