140k views
2 votes
Java can be procedural or object-oriented when it comes to programming. What is the difference between procedural and OOP?​

User Jeffkmeng
by
6.4k points

1 Answer

6 votes

Answer:

Procedural Programming => Functions

Object-Oriented Programming => Classes

Step-by-step explanation:

Procedural programming is essentially what it sounds like – it's a series of procedures that the computer executes out. A procedure is essentially a function built of different steps that you the coder have grouped as such.

Object-Oriented Programming is all about objects. Objects contain data in the form of attributes, and functions in the form of methods. The most popular Object-Oriented Programming languages are class based, meaning that each object is an instance of a class (the class being a template).

Hope that helps! And you can always research more online!

User Wolfsbane
by
6.1k points