Home > DeveloperSection > Interviews > What is the difference between procedural and object-oriented programming?

Posted on    September-19-2014 11:54 PM

 C# .NET  C# 
Ratings:
 1 Answer(s)
  1275  View(s)
Rate this:

Sumit Kesarwani

Total Post:782

Points:3910
Posted on    September-19-2014 11:54 PM

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.


Don't want to miss updates? Please click the below button!

Follow MindStick