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.
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
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.