0% found this document useful (0 votes)
39 views20 pages

OOSD

OOSD.PAPER

Uploaded by

km952838
Copyright
© © All Rights Reserved
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
0% found this document useful (0 votes)
39 views20 pages

OOSD

OOSD.PAPER

Uploaded by

km952838
Copyright
© © All Rights Reserved
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/ 20
_Teaditimad Appadach. Heae _cugorttam + Data 18/09] 2024 _Stucturxe = Pangan __A_seffuage system 1A _getof some. mechanism _ Fox terform data. ne) 6oxtan- “action em.cexain Ww Oe Difeent blw Traditional 4- object orierred. apna Traditional Appaacka Mcellection of praducer. @) Facugz on Prelude iA difdsen types ¢ fos each Sep of process Oo Moving Fr2m one Phase to Qnothes Pace Phage inmare (@)- complex @ Inaeose Complexity) @® Incaese dracon of povject- obyec? “Orsi ented_Apprach. Combi hoction ebrlacamd = xelated function (clase abiee(; and methab\> facua om Object, Claah,— Modile that—can.be—_ easily seplace a modifies = and - uged. Moviry phase eagily a @_ Reduce _camplexify md Redundency. alao —we UZe— ite cede. “aceosdine to the need_.cmy where Hanygh out the _paogpams:—_—__—— 28/09 ]2024- Object _gasic t-_ ! att A! casa. (ga. spe cHicetion¢ of Enns “(instance of vaviabl ea), __benaviourd ~- (Methods)... and. inherHance_ of objecia. Claszep O9¢. important -mechanigm for. clawifyune objects. in obyect_oxiented. system,‘ QA meted oF behaviour of an. sobfect TA. ‘ deFine by HA claes- ia _obyfeog ia ema. imatance” 6f @ claag — theiw may. be aH : ditfsentclaaaes acces. by a ingie—2 { { ‘ 4 % Object state ond Praperticn CArilauclen), ‘ Pavper-ties depresert a “State of _an object. example !- He properties of g_ ae Such o4 Name , brand, “caine mah Fue yyjlee 4 Casa dy. Sadi ng, 5 \___ Featuses ae model ro ete. ice = — *% Behaviours 2° (object. Dehaviouer_and.metned ) - Ie cam_dvive, Cad, we Gn ride an ~—[email protected] elephant con eat Qo}o3| 2024 __ behavitous. nthe object model, abject — __ belhowlour ia decribed in methoda—_or_parducerse. O Methed implementa -the behaviows of ona objec da coe _ + Message Cobject sespond te message) o- Pn object Capabiliyes an detewmine_by the —— methods define Arid method#_com. f- aoe equivotenk do 4the stunction_definatom and tsed in procedural language- abyss perform operations _In__zespond | -+e_.meanages+ when you press the. baeak pad! of a Cat send a stock menrnage cho CaN abject: a Information Hiding ( Encapsutetinn.) $= Information hiding i the principle of coneating.. the _inteanat dasa. and._parceduaeg.of 4 — om. abject ard paoviding.. _an__injexface—— do each. objec} in suc! tau! sda _geveat as little as posable __qhou4 ~_ifa Innex_working ae On_object in, Aad to encapsulate the cea amd _O__pangram® This. meang that __uaew. —__aynno}__see——the__ inside of. the objec — teenc ct Capsile” » bt}. Con — ree: the ___ pb jecd_by — Calling the objec] method. —Encapsullostion...cxiarfesrmetioa__hriding_g- aa design. goat oF _on__abjech = oxi: Systema. _ Retherx. than._..attowing.._an._ object _ lized —access_to anothes” _obyect'a_dacta.s mesaage __ja_.gent— do the staaget— abgecta-equearting. . __ncosmation.- _ on _ Ano-they —iaaue ia pey- object _on_pet= Clasg—— pwtectio. In pes- claaa _protection.,.the maa Comm vr — Farm (2-9-5 Ada, C++» titted js — Clase. methods can. acceas any. obfect_—— of that class and no} Just the deceiver In pes ~ object prvtectina_,. methods... Can. —--- access only the _vecejved, —S A Cad engine is an__example. of encapsutoctio. CLASS HIERARCHY oo An object - oriented gysiem organizes _clagses ~ m-to & subclasa - superclass hiesarch' __ pidferent behaviours _ Qge___ufed a’ the~ __ basics — for — makin distinctions. between Classes amd Subclasses» AL — the top ef the __clasa hiewasichy 022. the—m03.4_genseral 7 tae —_cloage8 amd at the. ...bottom. 020 Thy __-ynoad___apecific: [eee Subclass inhevija__all_e4 tao —panperfies_—__ “amd ___ methedg_.dek ined... paid —Hy2ee Cha QB» —___ _ | Motor Yehi cles surly bee eb (ax 1 7 \ minibus “Toco bus Torts PD ax cha defines how a_cax behaves» —The_—_ ford class defines the behaviouy of fice Clays. oe ae Foumeal or Abstaci classes __have no mstan ces but de#ine the commen _behkavioxs— that canbe inhented by. _ronse_spectfte Classes: : a eee cn some objecd ~ oriented lar the — derm9, _Superclaas_omd subclasses _aze—used— ‘Instead (of base cmd derived. SR Errhevictancesé- cs _ [PmoBewties of Greapautation J wv = _ —[ntemationtisig ] At [09)202Y _ Dele Protectim oc . TTT Povvider data inti ists. ee Pepe of enesie anor the — abject _ Stole _L —n Bein. Hiding ¢- Ls - ~ Encecpaclation Hides the interned) : “details. ef an objecds —_prrfecsting Hae clo-fa— __sfrem Cee nae ae eee trie] a ee “Identity Object eae ae A special Peoduae “of object. ae Grented Sysjem 1% that exery object hos ita —0Wn —_unige Om __jmnvebeible identity «____ An aes idensity comes indo being. when. - Object 1a ~_caeated ___ drand__ Comp nue-cto___ peo that _obgect- =a Se _thia- idarshty {Breet conkused usith emotex _obzects even a she origyinel abject. thas been deleted... re ° a Dynamic binding 2> aS 24 |e9}2024 © Pmvides the ability to ye-uge existing —casle« Ne © The mechaniam of dexiving “a neo = Cla9.3 Prom am old Claas 1% called inhexidance — ox derivation. dye bus © the different —tybhes of inhexi a hierarchical, multiple — and _multileve|‘mbentne. @ the devived—clasa ia also “called as clatdd —— Claas andthe bage —_clasg—_ta alae Called O% parent i Tt ia, the. clase. “thot _jnherits the o- Sub clase _ — prmportics _ fom anothey class = ew ~ caa—tshone erento — being aa = supers. chat ~ - Tt ia a — eae —AWride ct + prvyram-t0_take. Qa the number ig even _or_odd__! ~.-Freore x sthan O. Zew +. Hi include ele ee _ int main ©) < int fos - ee Cout <<“ Enter a Number’ co ines Sanaa See if (ns et — Wiens 2S = 10) Clout ¢<¢“ sme nd is Even” 5 ele a Cout << “ The nos [a Odd Cout < —— USIN9 namespace Std int + main Cd) ——_ gt — eas chay Cc} _ Cout <<“ Eniex a chevwa cher 2”5 Cin >> Gr = Ce tolowey (6)) ; ¥ Gea a’ \lc==te! Wessitll t % . —— else - a cout << 6 << “ig not a _voweh " £< end L,—_— “petum 0 5 - 3 ~ output 2 Q-—___ Digplay prime number blw +wo interwal using Clara Cmd_“obyect 2 SH indude iver Cout > lowes) a cout - — Parent Public int as Public oo 7 Void display () x J Cout “Parente Claw” s _ own 57 clas child + Farends { a Publi cint b} —— public: a void displeyy ts _ _ t a put “child claw” —_imt main a Ess Child a — Crdisplayl Ode mo Cdispleag 09) geduyn COV Mutt Level Inheritance _ oe 2 ae Grandfather. Public $ . Noid display & (_). { J Cout <<“ Thia Im Crrandfee iy! 33 Claes farsents 2 Gwand fecthey ey t - Public * en en es void display PC) ee £ tt a ES cout <<" Thin is povente” 5 3 Claas Child ? favends x public . Noid display ¢ - L Couk <<" Thit_is child i wn} main ©) — a ‘ child “Cg Cedisplay C Os” — _C-display PCY Grdisplag GC), ~ peru (0) 3 sity te eh eth ts ef, tah the 2 SP _Genensity is a JechnigueArrdefini Ges "software Coroponenk that. have more V2 than one inteprprelation depend: | - Aadypes of parameters. oe oT allows the declaroctim. of data “items witthouk: — Specthying theirs exact defo type. & ‘Such Unknown date +403 (genene dete co 4 ae ~O8€ otsvlved At the time of. thely IMEd on the data typeof. parcemederz : dutyiney a Aimetion cath. > Tie a _pmcens Gant atiaens _a_fanction A _clage to worl usithdiffesend —differend data AY pes. this type of Funadton_ Called template function. _ - = 6 +|b/2014 bo Tr ta jhe genevel_ ‘purpose nr — lang ues usge Pea to wisualize the hole- see " t da H ip a phical language, that ta stendead_ jo the Ae indushy fos — specifyne vist Cons Ductin. and documenting _—the_astifacta Y of the slu syplem aa well o4- ae —busindX, model. _ Yes an Benefits of UML %3- = Ee Simply-Fies complex _s|w design.» _Can._afgo_ obyect oviented de progsaming like _a_concept— that in widely used. on — the — System. — 2. Te seduces 1000 of words fos -explanadion ima ew graphical diagra mAs thar. may seduce. aime — ConsumHo ~ +o. Undewstend. 3- oS may Commun) cation _morxe__cleqyx__Ond_madye— man aplunectiong a 4g: - Wyi20 s get) eee e Tt_ same wos ook map aaa = paregrarnmas.. — _Upgers__demand. Pe alls thay elear _pictuse.orf Hie —_——_— o4| 10] 2er4 . he. ume diagram divided. 1) Shucturef UML diagram and 11) Behovioural UML, alegram Structure) UML piagra 37 Le Class Diagram ie &_ Package Diagram _ Component Diagaam _ — Composite shuctize Diagpam Diployment Diagram Obj ect Diagram. atl Beravioured UML -Diegram o- puso 1 Activity Diagram — it : 2: Sequence Diagram at es 3 Use cose. Diagzam ans ———— 9+ 8tate™ Dlagyam - 5 Communication Diagxan_ ae 6 Inteactiom overview Diagram can Tieng Diagram ——____ Clase Diagram kgect Diagram Paotile viagzam Package Diagzam compsnent Diagram Deployment Diasyam = Composite Structured) Diageam estate Machine > Communi catia ___ > Trtxa chim ovenviel > Beings Machine — jagwam 22 Claa2_ ——E - = the clasa_diaqram isa _cenhol — roodeling dechniq.es thet ans —_Haroug, nearly — ow object oriented methods. _ thin diagram — deexibes the types ef —ob4ecia—_‘in the System. and _varieus kind cf stoctic ~petadienshnip — a which exist _beheeen them ~ Relationships — Their dae_thaee _principal_kinds — ob. pelabions bt yp» ———________—.—- _ __getoctionste ation 2 Asso clastion aepyesenin blu —_madance of —-bime (_A_peason wards Gam pany + A ~ Creasy ase oa) A soci 079/10] 2024 Inheritance _ Inhevitance the most obiatA_____ addition to. ER Diagwora for use... in obyect oriented prgraming and itp olla o the concept of inhevitemce — when —dasiguniegs A Class diac yam. Aagregetion - A Form of a object Commpos itiey ‘m_the Onjeet orlendes design. 19/40| 2024. Object Dia at Obyec] dra gram isa graph of instances — MCluding ob4 ects and date Vatuos —o._- Slotic object diag rar ja_am. __ing-tan- a clasy “diacram it shows a_shanp shot — cf deteiled stete of System a4 a -point— in Hme._ the diffrence ia that a claaa— an atestoact model Consisting. of Clasees amd thei¥ acloctiomslana, How eves ay object diaspeam. reprsere———- am _instance of —-@ pay tt cutay _movenant Nartuxe + Hae UBS — diagram peprsesenlp which is —con cvite ‘in af object diagram ia Fedtily liwited. to So example of clorfer step ae— ee 10] 10]2004 i ee eet es wane — in no Gan nent... diagram x«epicta hous Computing .qr<_usired tagetney Am. lor gex—companent._.ax¢_S/us..$4sfenas Ma. Showa the architecture orf. the... Sexftusare.— ~ Comppnants _Crnd the dependencies _ b/.w__-+Hremn there —s/to Com ponen-a, bncluding aun time... | _ Components Inclediney,— has executable parapmont! ~~ CUB® the Source Codd Corn POnQtp :

You might also like