English

Write the differences between Object-Oriented Programming and procedural programming?

Advertisements

Question

Write the differences between Object-Oriented Programming and procedural programming?

Distinguish Between
Advertisements

Solution

Object-Oriented Programming:

  • Emphasizes data rather than an algorithm.
  • Data abstraction is introduced in addition to procedural abstraction.
  • Data and its associated operations are grouped into a single unit.
  • Programs are designed around the data being operated.
  • Example: C++, Java, VB.Net, Python

Procedural Programming:

  • Programs are organized in the form of subroutines or sub-programs.
  • All data items are global.
  • Suitable for small-sized software applications.
  • Difficult to maintain and enhance the program code as any change in data type needs to be propagated to all subroutines that use the same data type.
  • Example: FORTRAN and COBOL
shaalaa.com
Programming Paradigms
  Is there an error in this question or solution?
Chapter 13: Introducton to Object Oriented Programming Techniques - Evaluation - Section - D [Page 232]
Advertisements
Share
Notifications



      Forgot password?
Use app×