We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 6
Introduction to Object Oriented -
> ; :
Programming ( oncepts
Introduction, Low level | ss, High level languages (advantages and. dis :
of High level languages, Structure
Oriented programming, Difference between Procedural Oriente
< programming. All the four principles of COP viz. D:
P phism, Encapsulation with real life example:
Computer is an electronic device that accepts instructions in a specific lan,
Hence, it is very difficult to establish communication between the user ar
' omputer if he/she is not aware of computer language. This is the reason why
learning, computer language is very essential for working on the
mp
The computer languages are basically categorised into two levels. They are
Computer languages
' ¥
Low Level Languages High Level Languages
) 1. Low Level Lang
The low level languages are the type of computer languages in which the
computer recognizes the instructions, without eonyersion into any other form.
\ (They are sort of cryptic languages which are not directly understood by the
‘userSThese type of languages were used in the early computers when only the
experts were able to code the instructions. The low level languages are further
categorised into two types:
* Machine Language
It is the form of computer languas
of binary digits (bits), i.e, in the form of zeroes,
form of binary instructions is also &
=——-=The computer understands the machine codes easily ( POL need to
te uansbrmed or converted into ary other form). Th of this 2, High Level Language
are atthe program executes fxter because the machine code is directly To ovexome the disadvantages of low level languages, the experts (System
eel by the CPt Develipers) developed another category of languages, which are referred to
: y as the High Level Languages (HLL). Those languages allow the user to write
tes weit ae ear ale es welsh eget ee +The error detection and correction is easiex,
opcodes, lustrated for your reference: Dison
f Hig Leh lenguage
‘Ie eyquites a franslator to convert the source code (program) into machine
Tae ‘hardware structure of the computer for Fnglish words and mathematical symbols.) Thus, it makes the instructions
dhe retraction Giles Pe See TE TEREE WANE ceder to undemand in te aner's save lnfguape alee wiser sire be
+ Theerror detection and correction | ag q machine dependent language. : instructions, even if he is riot aware of the hardware architecture of the computer.
ee ae tes oe ree a ge et
coenpuiter for execution, The instructions in, ige ate readable to °71Es sasiet to. understood sel deal, te. Beran Bs
.
.
MNEMONTCS DESCRIPTION or - copes code ee he ae 3
i +The machine code of high level instructions might be less effcient than the
De Enter the value in B t (One ofthe major disadvantages of the high level language is thatthe machine
ABD ABI) Aid the valves of A and B canner hs ngunge dt (4 machine understands only machine
: language). Hence, we need to convert the instictions written in high eve
i src Store the sum in ¢ language into their equivalent instruction, in machine language, co that they
mur S109: BF can be operates upon by the CPU, The trnalators/Ianguage processors use! 1
ave mentioned tisk, ae referred t a5 Camels and Interpreter. Let
‘The instructions tis understand the functions ofthese translates,
fen in assembly 1
yuage are not directly understood by
omputer, Hence, a translator is required to convert the instru
ns coded
inthe assembly language to its equivalent machine code which is known as the COMPILER AND INTERPRETER
i Aprogram in high level language nceds tobe converted into machine code (binary
‘cove) 50 that the computer can understand the instructions for processing. Ifthe
program contains any error then it must be corrected for successful execu
ser
é sre ace coe
The conversion of high level language (source code) to machine la
(binary code) can he Jone in two ways: eter by using a Compiler or an
Interpreter 3
th nructon as cmpard to machine ngage Ti software that acepts the hole program. writen in high level languag
{Bees and conection i also comparatively easier and.convers 7 ns equivalent program in machine Jaaiaga- as Know 38
cade can easly be modified cn 2
The program, whid the compiler uses for conversion, i known as the wees
progam oF source cod ‘The program converted into the
ow he st ra
d to remember all the mneminics
quired to convert the instructions into machine code.rors in the
Pr Drented Programming (POP) basically consists of a list of
Machine iustions for the computer to follow and. these are anganized into groups,
Sa known a ‘We normally use a flow chart to Organize these actions and
yc gram represent the ow of contro from ame function to another. In Procedure Orin
Programming, most ofthe functions share glebal data and this data moves more
tween a Compiler and an Interpreter ypenly around the system from one function to the other.
items ate globally used by all the functions, however, a function may contain
1. Woonverts the whole source program 1, It converts the source program into ‘own loeal data to dea! with logical situations, The organisation of data and
into the object program at once. he object programm one fine atime ts function fn POP gam bo lasted a
2.1 displays displays the errors, one line at a
whole program together time and only after debugging that
compil
error the control goes to the next line, _)
TYPES oF HIGH LEVE
High Tevel languages are broad
imam onetlrens, (Rete etetamiee| SD
* “QO hussanaccaseaReONProgram he rhe diferent Object Oriented Programming languages commonly being used
rece te ing he PoE ss One Orened moaning GOP)» mat att
t + Data values can keep sheen i tures of Object Oriented Programming (OOP)
I ‘# Ituses top down app ‘of programmin - tho features of Object Oriented Programming, are listed below
: th ction case n ve data values,
- Ait ny tc mn . for “Ot NG rented Programming’ and POP stands for ‘Procedure Oriented
2 The data is resected, 1 be sed ia
recten + . KEYWORDS RELATED TO OBJECT ORIENTED PROGHAMAING
i : Tt fs a unique entity, which contains data
seiour) together in an Object Oriented Programening
. 4 The objects that we experience or use fn our day to
‘ * i Tach real world object contain characters and behaviout. The
s Pasa cratics basteally comprises the parts of its body or specifications
rene behaviout refers 4 the purpose ofits use or it function.
ee Odwan
ah
elias
" Parameiy
nein
ata and functions are inter-tinked
an objet could be maintained independently
the software easier to anal
itations of Object Oriented Programming
though ages are predrced in solving Bt
ving, problems ix ore Ha rcomyared to Procdute Oriented
Student’ Notes )