1.2 Procedural Vs Object Oriented Programming.pptx
YogitaTiwari6
16 views
10 slides
Aug 11, 2024
Slide 1 of 10
1
2
3
4
5
6
7
8
9
10
About This Presentation
java oop
Size: 356.93 KB
Language: en
Added: Aug 11, 2024
Slides: 10 pages
Slide Content
Procedural Vs Object Oriented Programming
Programming Paradigm Programming paradigm is an approach to solve problem using some programming language or also we can say it is a method to solve a problem using tools and techniques that are available to us following some approach.
Imperative Paradigm Here the programmer instructs the machine how to change its states It includes statements that can change its states Hardware implementations of all computers are imperative/essential because They used machine code that is itself imperative Imperative paradigm can dived problem into small problems
Procedural Paradigm Procedural Oriented Programming is one where the main focus is on functions or procedures required for computation, instead of data. The program is divided into functions, and the task is done sequentially. These functions share the global data or variables, and there is an exchange of data among those functions. It is a step-by-step process that breaks the task through a sequence of instructions. It uses a top-down approach and sees data and procedures as separate structures.
Object Oriented Paradigm Object-Oriented Programming (OOP) is a fundamental programming concept that developer uses for binding data and functions together using the concept of object and class. It helps the programmer to control and access the data. It also improves the code readability and reusability.
Object-Oriented Programming (OOP) Procedural Oriented Programming (POP) Object oriented. Structure oriented. Program is divided into objects. Program is divided into functions. Bottom-up approach. Top-down approach. Inheritance property is used. Inheritance is not allowed. It uses access specifier . It doesn’t use access specifier . Encapsulation is used to hide the data. No data hiding.
Object-Oriented Programming (OOP) Procedural Oriented Programming (POP) Concept of virtual function. No virtual function. Object functions are linked through message passing. Parts of program are linked through parameter passing. Adding new data and functions is easy Expanding new data and functions is not easy. The existing code can be reused. No code reusability. use for solving big problems. Not suitable for solving big problems. C++, Java. C, Pascal.