C++Tutorials

Basic Concept of object-oriented programming

In this article, we will learn about the basic concept of object-oriented programming as well as procedure-oriented.

Let’s start with procedure-oriented programming procedure-oriented is made of two words procedure and oriented. First, we will know what is programming and after that, we will know about what is procedure.

What is programming ?

Computer programming is the process of writing code that instructs how a computer, application, or software program performs.

What is procedure ?

In computer programming, a procedure is a set of coded instructions that tell a computer how to run a program or calculation.

What is procedure oriented programming ?

Procedural Oriented Programming is a programming language that follows a step-by-step approach to break down a task into a collection of variables and routines (or subroutines) through a sequence of instructions.

What is object oriented programming ?

Object-oriented Programming is a programming language that uses classes and objects.

Difference Between Object Oriented Programming and Procedure Oriented Programming

Object oriented ProgrammingProcedure Oriented Programming
Object-oriented Programming is a programming language that uses classes and objects to create models based on the real world environment. In OOPs it makes it easy to maintain and modify existing code as new objects are created inheriting characteristics from existing ones.On other hand Procedural Oriented Programming is a programming language that follows a step-by-step approach to break down a task into a collection of variables and routines (or subroutines) through a sequence of instructions. Each step is carried out in order in a systematic manner so that a computer can understand what to do
In OOPs concept of objects and classes is introduced and hence the program is divided into small chunks called objects which are instances of classes.On other hand in case of POP the the main program is divided into small parts based on the functions and is treated as separate program for individual smaller program.
They contain access modifiers, private protected and publicNot available here
Due to abstraction in OOPs data hiding is possible and hence it is more secure than POP.On the other hand POP is less secure as compare to OOPs.
Examples – php, c++, java, c#Examples- Cobol, Fortran, C, Algon, Basic
Video Language is in Hindi

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button