XII - Chapter 2 - Object Oriented Programming
XII - Chapter 2 - Object Oriented Programming
➤ Programming Paradigm:
A Programming Paradigm defines the methodology of designing and implementing programs using the key
features and building blocks of a programming language. It is a fundamental style or approach to writing
computer programs. It provides a set of principles, concepts, and techniques for designing, developing, and
maintaining software.
➜ Procedural Programming
Procedural programming is a programming paradigm that involves breaking down a program into smaller,
sequential steps called procedures or functions. These procedures are designed to perform specific tasks,
and they can be called by other procedures or the main program. Procedural programming paradigm lays
more emphasis on procedure or the algorithm. Data is considered secondary. Data is loosely available to
many functions.
One of the key benefits of procedural programming is that it allows programmers to break down a
complex problem into smaller, more manageable tasks. By dividing the program into smaller procedures,
each with its own specific purpose, it becomes easier to understand and modify the program.
Examples of programming languages that support procedural programming include C, Pascal,
Fortran, and BASIC. However, many modern programming languages, including Python and Ruby, also
support procedural programming along with other programming paradigms.
Major limitations of procedural programming paradigm are :
2
(i) It is susceptible to increased time and cost overheads during design changes.
(ii) It leads to increased time and cost overheads during design changes.
➧ Modularity: Modularity in OOP refers to the practice of breaking down a complex system into smaller,
self-contained modules, each with its own set of responsibilities and functions. Each module is designed to
be independent of the other modules, but can still interact with them through well-defined interfaces.