Basic concept of OOP's (1)
Basic concept of OOP's (1)
OOP's
Introduction
Object oriented programming is the principle of design and development of
programs using modular approach.
Object oriented programming approach provides advantages in creation and
development of software for real life application.
The basic element of object oriented programming is the data.
The programs are built by combining data and functions that operate on the
data.
Some of the OOP’s languages are C++, Java, C #, Smalltalk, Perl, and Python.
Procedural programming
The procedural programming focuses on processing of instructions in
order to perform a desired computation.
The top-down concepts to decompose main functions into lower
level components for modular coding purpose.
Therefore it emphasizes more on doing things like algorithms.
This technique is used in a conventional programming language such
as C and Pascal
Object oriented programming
Object oriented programming (OOP) is a concept that combines both the data
and the functions that operate on that data into a single unit called the object.
An object is a collection of set of data known as member data and the functions
that operate on these data known as member function.
OOP follows bottom-up design technique.
Class is the major concept that plays important role in this approach.
Class is a template that represents a group of objects which share common
properties and relationships.
Differences Procedural
Programming Object Oriented
Programming
Large programs are divided into smaller programs known as functions. Programs
are divided into objects.
Data is not hidden and can be accessed by external functions Data is hidden and
cannot be accessed by external functions.
Follow top down approach in the program design Follows bottom-up approach
in the program design
Data may communicate with each other through functions Objects may
communicate with each other through functions.
Emphasize is on procedure rather than data Emphasize is on data rather than
procedure.
Basic Concepts of OOP’s
The following are the major characteristics of OOP’s: