Question
Explain the differences between procedural programming and object oriented programming with the help of one example program of each.
Answer :
Word Count : 477
______ ________ ____ __________ ____ ____ _______ _____ _________.
_________ _______ _______ _______ __________ ________ ___ __________.
___ ____ __________ ___ ______ __________ ___.
_____ _________ ______ __________ _____ ______ __________.
_____ ______ ________ ______ __________ _______ ______ _____ _______.
____ ___ ________ _____ ____ _________ ____ _______ ________ _________ _________.
__________ __________ _______ _______ ________ ________ ______ _______ ________ ______ _______ _______.
_____ ________ _______ _________ _____ _______ ________ ___ ________ ______.
______ ______ _______ ___ _____ _________ __________ _____ _________.
____ __________ ________ ______ _________ ____ _____ ______ __________ ___.
____ ________ ___ ____ _________ ______ ________ ___ _____ ________ ___.
_____ ________ _____ _________ _________ ________ _____ ___ ______ ______ _____.
_____ _____ _________ _________ ____ ____.
__________ _______ ______ _____ ________ __________.
_________ ___ _________ ____ ____ ____ ____ ____ ______ ___ _____.
___ ______ ___ __________ ______ _________.
______ __________ _____ ____ _____ _________.
_____ _________ ______ ____ __________ ___ ______ _______ ________.
______ ______ ___ _____ ______ __________ __________ ______.
________ ________ _______ ___ _________ __________ ______ _________ ____ _______ _________ _______.
______ ___ _______ _______ ___ ___ __________ ___ _______ __________ ______ ______.
_________ ______ ___ __________ _____ ___.
________ __________ _______ ______ ________ ___ ___ ________ ___.
___ ________ _______ ______ _______ ________ ________ __________.
_____ ________ ______ ___ ____ ________ ________ ____ _______ _____ ___.
__________ ____ ___ ____ ______ _______ _________ ________ __________.
_________ ______ ______ _____ _____ ________ ____ ______ _________.
________ ______ _______ ________ ________ _______ ____ ___ _______ ______.
________ _______ ___ ___ __________.
_____ ________ ____ ____ _______ ________ ___ ____ ________.
__________ _____ __________ ____ ____ __________ ______ ___ ______ ___.
__________ _______ ___ ___ ____ __________ ______ ___.
_____ ______ _______ _________ __________ ___ ___.
_____ _____ ________ ___ ____ ______ __________ __________.
__________ ________ ________ ________ ________ ________ ____ _________ ______.
______ ___ _________ _____ ___ __________ _________ ____ __________.
_______ _______ _____ ________ _____ ____ _____ ___.
______.
Skip in 10
Procedural Programming and Object-Oriented Programming (OOP) are two fundamental programming paradigms used in software development, each with its own structure and approach. Procedural programming is based on functions or procedures, while OOP is based on objects and classes. Procedural programming follows a top-down approach. It organizes the program into a set of procedures or routines that operate on data. This paradigm emphasizes step-by-step instructions and is suitable for small and straightforward tasks. In procedural programming, data is usually exposed to all functions, and the code is less modular. Languages like C follow this paradigm. Object-Oriented Programming follows a bottom-up approach. It organizes the program into classes and objects. A class is a blueprint for creating objects, which contain both data and methods. OOP emphasizes encapsulation, inheritance, and polymorphism. Encapsulation binds data and the methods that operate on that data, keeping it safe from
________ ______ _________ _______ ___ ______ ___ _____.______ ________ ____ __________ ____ ____ _______ _____ _________.
_________ _______ _______ _______ __________ ________ ___ __________.
___ ____ __________ ___ ______ __________ ___.
_____ _________ ______ __________ _____ ______ __________.
_____ ______ ________ ______ __________ _______ ______ _____ _______.
____ ___ ________ _____ ____ _________ ____ _______ ________ _________ _________.
__________ __________ _______ _______ ________ ________ ______ _______ ________ ______ _______ _______.
_____ ________ _______ _________ _____ _______ ________ ___ ________ ______.
______ ______ _______ ___ _____ _________ __________ _____ _________.
____ __________ ________ ______ _________ ____ _____ ______ __________ ___.
____ ________ ___ ____ _________ ______ ________ ___ _____ ________ ___.
_____ ________ _____ _________ _________ ________ _____ ___ ______ ______ _____.
_____ _____ _________ _________ ____ ____.
__________ _______ ______ _____ ________ __________.
_________ ___ _________ ____ ____ ____ ____ ____ ______ ___ _____.
___ ______ ___ __________ ______ _________.
______ __________ _____ ____ _____ _________.
_____ _________ ______ ____ __________ ___ ______ _______ ________.
______ ______ ___ _____ ______ __________ __________ ______.
________ ________ _______ ___ _________ __________ ______ _________ ____ _______ _________ _______.
______ ___ _______ _______ ___ ___ __________ ___ _______ __________ ______ ______.
_________ ______ ___ __________ _____ ___.
________ __________ _______ ______ ________ ___ ___ ________ ___.
___ ________ _______ ______ _______ ________ ________ __________.
_____ ________ ______ ___ ____ ________ ________ ____ _______ _____ ___.
__________ ____ ___ ____ ______ _______ _________ ________ __________.
_________ ______ ______ _____ _____ ________ ____ ______ _________.
________ ______ _______ ________ ________ _______ ____ ___ _______ ______.
________ _______ ___ ___ __________.
_____ ________ ____ ____ _______ ________ ___ ____ ________.
__________ _____ __________ ____ ____ __________ ______ ___ ______ ___.
__________ _______ ___ ___ ____ __________ ______ ___.
_____ ______ _______ _________ __________ ___ ___.
_____ _____ ________ ___ ____ ______ __________ __________.
__________ ________ ________ ________ ________ ________ ____ _________ ______.
______ ___ _________ _____ ___ __________ _________ ____ __________.
_______ _______ _____ ________ _____ ____ _____ ___.
______.
IGNOU ACADEMY
Your IGNOU journey, made easier.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
Continue Reading — It's Free
Sign in with Google to unlock more of this answer.
✓ Free access
✓ Unlock up to 60% of the answer
✓ No payment required
✓ Unlock up to 60% of the answer
✓ No payment required
Quick Google sign-in. No separate registration form.