---
title: "What is the difference between procedural and object-oriented programming?"  
description: "What is the difference between procedural and object-oriented programming?"  
author: "Sumit Kesarwani"  
published: 2014-09-04  
updated: 2020-09-15  
canonical: https://www.mindstick.com/interview/2136/what-is-the-difference-between-procedural-and-object-oriented-programming  
category: "c#"  
tags: ["c#"]  
reading_time: 2 minutes  

---

# What is the difference between procedural and object-oriented programming?

Procedural programming is based upon the modular approach in which the larger programs are broken into procedures. Each procedure is a set of instructions that are executed one after another. On the other hand, OOP is based upon objects. An object consists of various elements, such as methods and variables.

Access modifiers are not used in procedural programming, which implies that the entire data can be accessed freely anywhere in the program. In OOP, you can specify the scope of a particular data by using access modifiers - public, private, internal, protected, and protected internal.

## Answers

### Answer by Sumit Kesarwani

Procedural programming is based upon the modular approach in which the larger programs are broken into procedures. Each procedure is a set of instructions that are executed one after another. On the other hand, OOP is based upon objects. An object consists of various elements, such as methods and variables.

Access modifiers are not used in procedural programming, which implies that the entire data can be accessed freely anywhere in the program. In OOP, you can specify the scope of a particular data by using access modifiers - public, private, internal, protected, and protected internal.


---

Original Source: https://www.mindstick.com/interview/2136/what-is-the-difference-between-procedural-and-object-oriented-programming

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
