3
and organizing these instructions into groups known as functions. These functions share global data and
can transfer data from one form to another. POP employs top-down approach in program design.
Features of procedural oriented programming (POP)
➢ Emphasis is on doing things algorithm
➢ Large programs are divided into smaller programs known
as function
➢ Most of the functions share global data
➢ Data move freely (openly) around the system from function to function
➢ Function transfer data from one form to another
➢ Employs top-down approach in programing.
4
Fig: Relationship of
data and functions in POP
Basic Concepts of Object-Oriented programming:
1.) Object:
It represents the entities of the real world. For e.g. Bank, Person, Company etc. They
have attributes and function. For e.g. Attributes like color, address, name etc. The function like
working, speaking, public relation. In OOP, the problem is always
analyzed in terms of object
communication through function i.e. the functions are used when some message needs to be
passed
and worked out accordingly
Dostları ilə paylaş: