0% found this document useful (0 votes)
5 views

Unit 1 oosd

The document discusses object-oriented programming concepts including encapsulation, inheritance, polymorphism, and abstraction. It emphasizes the importance of UML (Unified Modeling Language) for visualizing and documenting system behavior and structure. Key components such as classes, objects, and relationships are outlined to facilitate understanding and communication in software development.

Uploaded by

wetheones7
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Unit 1 oosd

The document discusses object-oriented programming concepts including encapsulation, inheritance, polymorphism, and abstraction. It emphasizes the importance of UML (Unified Modeling Language) for visualizing and documenting system behavior and structure. Key components such as classes, objects, and relationships are outlined to facilitate understanding and communication in software development.

Uploaded by

wetheones7
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

’ undeutohd preblm

’ppartn coeumtalon

dBsereke ob;: colleton


Ortented ' meons
Obyetthot cortain
bahasfor.
-hot pos6us5ed uth tttbutes
combihe -the propedles o proczduve
the entity hot pafonm
obyet
8 dota sBnee
computaton ond

opproach cunteued ound


à a prog
hefr dota
Uni
behautor

Aduanon make code entter to manag


moke
Modufaity be mued aetoss
obyect con

" Rutabil:y t closs


Scalab:lby to maBotain & updatt code
te.
daa, Ctt,

tt Chasaceuties
ncapsufation Classu Obyect uth tach
.hhetence (obj can comm. method
. Polymorphism othuu rocon bls thn)
"-Abshraction
Modulri
Once &wsed muHiple 4ime
bohaotors.
objeet he dolins the propuha &
Class

F dos no mano"
Class cla8sAJnme classhlame
ot. : value
melhods

class Circle
publie :
gtCinde (onst potot 6)3
vold sdRadtus
(doutle); Cirele
uod const; rad i double
double Area () cuntey: point
privati :
double od gtCurteu(potot)
pofrt cernter; AtRodus Cdouble
-Aeac double

Obyect
Reprwrnt tnstance dous
byec has th gioen mo me
cond^ -that ob t mleuat to mod.
State !- paultalay do tht con
Behoutor -
eby
knows t a pautaley memert
execude.
Storte
can
TahutenCe
Hfererchy
class A MuHilwd
Hybrid class A
Mutple cass A
class A class& class C
class B class A class B
class &
class &
c lass C

class C classC class D


t Paupose t To promee
code
tnend
4 class E

Eneapsulaton -Absotion
problm at tomplumestalon ’ Sotoe problum ot dutn lu
- Soloe
Iwl.
dta to Htde unwanted dota &
Hide -he code å show rluwat dota
proteet data rorm oudside
uborld,
Hrde oteunol detotl
doe tnstod houo
mehantcs houw it does.
does soethin
oLAin layout
foney
mobile rplemuntalton dtil
phon
phont
vatiables
-’ contato ptuatt
pabl'c qtthy sty
method.
hous mssa

obj messopecbj
mesage
obj:
Yolymorphtsm to be trete
alo
class
base class.
COMmon

achteved though artion


con be
con

opoatr ouuloadtng behauior


Rupose ! nable
Run tme atfmorphiam
Comple Trne Palymorphtam at mun me
at compile tme
-’
poly abo called dynamt
’ also caltdas state
metthod to slouwy due to

detoymined munime deisfon


call
comptlaton,.
’ more
-’ less
buhauter depend on

behauto knoun at
comptle tme.
’ achieved
achteucd through virtual
qunton ouddtn
opuietor
to mpruent
tt Model alor to
snde behauior 4 ieactos.
lcnye
Iwed Ho unduutand
Use to documnt, destj
communfcat.
to
-that

KeyComponenst
block o UML Mod
uM such as classes
J. Ctemets - butldng
eomp
elemet irteuact
. Ralalionship :
- hou
model
3.

proous, evetng model.


Modelt" or to -the eonstueng npuraton
reol tworl pheorheron analyze, sirn late & communfca
simtote
thein bhauior.

Madil ng Handautoud modeltig


t UML (Uni<iud Modelting Lo const.
for ulsualiz speeit

& communication

Viaualtstog
Consucng
tt
ofu
bhasor fstsdetion

code
t

doe
UML modo!
Do1mniog the
bohostor ond den
dosms hasdne
Renl wonld

Undkuslona'e smaghne
bhaulor

3. Budteton atroe

procas
Modlcotyaneeptek process

standad vsua long

Eka compler yerm vsuallaa, conahuct, specty

deunlopr sir stakcholde ar unducandig improve

UML Component Diagram


1. Structused Bohonto
Class
. Use Case

Compone
-Arnolato
Bohautoral
Ralalionship
Thing
Block Buflding
Mechaniar Common 3.
UML.
BlockBurldig nnect-
connect to Rule J.
Block UML J.
dernets mejer 3
conapt deined !-MadelConceptuah
made modl
Modet Concaphua
UML
document
aa usorking
ay
comp
wsuelize ship lation buhator stuctusie, Viaualizig
vistualize
Goa
8httial TRhg ont otate paut the sytem.
proue

Bluspr'nt that deÝhe athbati & mehod on ebj


t ClasS -

elass hame
ctibut
behautor
eucwice Ja.
Tranoe - cleclton opurolton that
<etnlonlace
className
behator

Visuolize
obj
Name
be
t Use Case end
Visualize

t Actioe Class - cla ' capab k opualin fhdpnda


olhey

class Name

opelfon
Componernt- Modulou past

omponunt
Name

physeal outputs (tle, doe. ) of a


t -Antlhot - Repmant
Duertbe dpoyme eMecuable
souMce le, sexsipt,
Replacable paut
name.dll

haduaye sottuoe en:

phystea!
uwktch phystea
mpruunt
t Node I- prut ystem un. avh. munine
Visualize
Sewe
Nome

Behautora! Thtng
UML.
Dynami pot
behauior ouu
space me.

. Gtate Machine
1.Tateuaouon Delhe csonk<tow
Suquence states an
procil
sef
ochonged 'ao
acomlth apaci uponse to ewent.
steps"
ppose. no. otho clements
opeioname, name indico
wet pupase
aetutes tep

name o
-the
F divde the to undoutand

cortatnex tteh conBn latid classes,


component &
the elemets
led to

H ot ony tn deuelop mernt ime

about the
t -Annetetonal "Thog urd to
the strutiue & behavtor unnt.
Usdto clauty
cOe
thout
ofo.
"Note tut bosed annotodon , hteh proutde addtltona
about modl.
Used

Co Mmet
to ie or Connect aloted hBng in UML
Rdolionahip - used

.Associaton
change in ne Jemert Deeibe st "ahole
(tndtdut onu) con Roks. 'has a' .
othey element tnk a conneeten paut can ert
(dpndunt on) ndepundonilly utot.
----- O...1
Team fPlagex
can exist hout a
Playe
tenm.
Reattation connot evol
Compostion - peot
cuhok.
boild on class intet. hdpindrsty
-olion Dne days tmpan House Roo

child(pauent)
chate stucui) --D
[class
crele shape
child

hmunt mdeed
tol Grophtead prauntolton
connectrd

Stote
Use Cast
Dyploymust "Class
Collaborotion "Componunt
OML Dagram

Bahauor Diagnm sthructee


T
Storte Mach. Class Comp:
Iruacton Use CaAe obyeet

slatte apect
comporwnt, attrbit , l.
tonikdyne
transl'on.
tnluost'en'6 sate
Scenorio
behaue fn
Atme hd-pndont
tndep

how wll

t Name
t Common Mechanis n UML
Poundoion dement hat ae chaved

Speatleation UML elemut has cation


Hh dtas! & chauactiyee
dlne
model's trucluye behauior ae l Agond.
detatl oddl b
to uML demet
d.-Adornment addrdonal
to

or eonstralo.

3. Corvnon Dutlon ! age drfunt aupct ystmpuupete in a


modl.
4. Ewenetbi Mehis preuid. sBandrd lang for wortl ofteoe
-to
&duflnt bto
one
mode
pautbk nuance

all domain
to creade buslding block rom
one but hat aue

allow Ho crali

spautiation.
aloo to all ne ule on
t Constrait -
UML Amehietae
oadsed
cayoriud, ond ud
how UML

deserocd by tve t toeking


Nocabulaus
Auneon Englimun!dnatn mnsmunt
Tmplemeta
Use Case
vieu
Proceas
Viuo

Perlormanct
Selatty
Delveyy
" Installaon

Use Case descntbe behauier


Seen end Vusy.

Dajn cau, intaloee , collabanation -that

tt conol
that Oe UÀeo to

cla to

the node hat e


on ushich he

ekeute.
Obet Orieted og
Bocedudrqramning
Top Ooon Aperoach. " Bottom up tpp
Acess
Can be adde
. Conno add
morre

8Can hde data.


dota hiding
top- than
fan
to mee fmp: than dota
boed
baked on unreo! borld
C, foRTRAN, te C++, Nawai Rrthon cte

Tnportanea o Modattn
stmucauye & behauiot
" Help to
to vtsualize the syetem
-to constut a
proutde gude
help to undostarnd compe aatem.
documert the dects ton hat you made
dectson
’ visualize

’ conshut
’ doeument
icdple UML Mode lling
împortant
J.The cheice mod sol u shaped
hod problem u cttacleed & houw
leut o preision
t
J. Euny modil my be erpmued

3. The bet mod1 connedtud to

4. No modl

proutde brood eone«ptual


Hhe ned. modd
.
or ddathd prndid?onBuntlable
preets'on depend dta, esoee
Luel
ttended app
modd shoutd be uth oouwable phenomunon and
shoudd prouide rltsble pmdtation.

Model neded to addrus tnt


Mattpl
pupelie, scale

You might also like