|
|
Procedure
Oriented Programming
|
Object-Oriented Programming
|
|
Divided
Into
|
In POP, the program is divided into
small parts called functions.
|
In OOP, the program is divided into
parts called objects.
|
|
Importance
|
In POP, Importance is not given
to data but to functions as well
the sequence of
actions to be done.
|
In OOP, Importance is given to the
data rather than procedures or functions because it works in the real
world.
|
|
Importance
|
In POP, Importance is not given to
functions.
|
In OOP, Importance is given to the
data.
|
|
Approach
|
POP follows a Top-Down
approach.
|
OOP follows the Bottom-Up
approach.
|
|
Access
Specifiers
|
POP does not have any access
specifier.
|
OOP has access specifiers named
Public, Private, Protected, etc.
|
|
Data
Moving
|
In POP, Data can move freely from
function to function in the system.
|
In OOP, objects can communicate
with each other and pass data through member functions.
|
|
Expansion
|
Adding new data and functions in POP is not
so easy.
|
OOP provides an easy way to add
new data and functions.
|
|
Data
Access
|
In POP, the Most function uses Global
data for sharing that can be accessed freely from function to function in the
system.
|
In OOP, data can not move easily
from function to function, it can be kept public or private so we can control
the access of data.
|
|
Data
Hiding
|
POP does not have any proper way
for hiding data so it is less secure.
|
OOP provides Data Hiding so provides more
security.
|
|
Examples
|
Examples of POP are C, VB,
FORTRAN, Pascal.
|
Examples of OOP are C++, JAVA, VB.NET,
C#.NET.
|
Computer Buses A computer system consists of different devices.CPU must be able to communicate with all devices. The devices are connected together by a communications channel called bus. A bus consists of a set of communication lines or wires. It is used to move a large amount of bits in the form of electrical pulses from one unit to another. The bus is used to connect the following units: Central Processing Unit Control Unit Arithmetic and Logic Unit Main Memory ( RAM, ROM) Input / Output Devices Bus is a common path to transfer data and commands between CPU, memory and input / output devices.It is also used to send or receive data from secondary storage.The capacity of a bus depends on the number of data lines in it.A bus with 16 lines can carry 16 bits or 2 bytes at a time. A bus with 32 lines can carry 32 bits or 4 bytes at a time . Types Of Buses Different types of buses are as follows: 1. Data Bus 2.Addres...
Comments
Post a Comment