0% found this document useful (0 votes)
38 views13 pages

Oops Assignment 1

Uploaded by

Shankar Gowri
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)
38 views13 pages

Oops Assignment 1

Uploaded by

Shankar Gowri
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/ 13
Java (obie ck Oriental Programmi ) Ms (ravi Shanker A\snynrnend od DIGTALAY CALA Explain ere tert and Gorvtcrdy ovdbealing coi aA Oyinyt Progen. ; +] Metioet oven locating ¢ meres! entey oreting fer fvty cnltee yes to clafie arlipl natives cote Ru fame rome bit enret OPM if angomentt ‘ al fa emedoget tend different prvens fos Hay prowekde sfeewebr trey coklry Coot EOL iff chia ypu Uaying Nee (Alles God MEY For ane bt .yarcan Inve mpl ipe wert Penpwes Semler fan pel eve eal ts oliffinent Pe Ponce een Pee cermpiler letras chien \atvtiony af fa reg 08. “tet rst fomet 0m fe aagprnent praviiner tenn ht ent ltect Cant. b Yompu s Roped Clea) mon pra tion t wat b) pobre lat mvitiply Ginter: a vein ath } jopne TOE molliply / 4 . / \ 4 cow Bhi pore doe mehPy Ge A (totic, tats my a omneat b? % Pobic Skate Vord main Ching gil) u t ai soit pica tion ¢ cul Plitatier OM acy ern pice oO tnt Preeleet oly multiply (2009 Choi precede «of + ene Hay (20.10 prociect e bys UEP Cro dds yw PRE a pated ttl races FS preter sipiernn Gul = PHU Ant preted . s ayeetuer si PUES) a Consputey OMMMoaTing 7 ¢ at [ ioclufie mn 2 faunshG aluvkocting yy hat mul ype Counthed fol — eal Clee, toe? jouer as, Kelle cy ef 4 chery anu (nably you to cytat ObstCH wide i ley Seto} Porcine hw clon fie angun unl Provid@r, ulhwrged Ovni ylobet 6 (niialigakiow — be County a O, COMIN ee Can Weeve mo ltiPt Unde {tre Coun sactuy) Ne uy) feobjttt in oliffant aay com pilY Litera, to inveleer — beste on fw angus un untny frat inliatide whith yes? Of fer Cons prettow Prod who Cyiodtal on objet Eyerex Clas cax? Sting broress Shing rede j tnt glo: Poblic: Cor od pil = byare =" Ford" ; fois» rreclil = “rnciieng* 3 gh yer > 19697 t Pobiic Con ( Grieg brara}4 qi) + bare brarel 5 Fis) dtl = “onerowe" 5 pin Ylot < Tunkrowet 5 pubic Con ( Sting bert, shingeneett) { thi) » brene- Iprenet 5 ini ae mnlil eo rneltl, fit’ yor “onknow *¥ : tod poplie er ( Sing byoret, hing revel, EPG yew) 4 tae byrend = YOrc! 5 anna rood * cdl; * bpean 5 tilt year play Of cole PHiably (Spyranett's brane + "Ney Mactels "0 rnente Susie + Niyeon "4 yeory > 4 (ord rvvain( Sting © gst DH Popric Steitic ree (ory \j Cay Cav) Is nun Car ("fe Cox Cart 1: avd new Oo ove”, ‘nase ")j ay. ce cay corvy = ete col" para", "“moneg’, 2469); Corpelophy Q; cava APY O); Cavs, cli pey Oy cave HSPlY CD 5 / } / } / J what 0 String clan? Explain any 20 String homot ling notions fn Javer e Tht‘ Gring’ claw tn Javan OX Slope af Chore ho ge p widely OMe for string erani polation art Ferelling tn fever. Ie Lingin ys Rebrny the Chor lengdn of he Shing 2. Chow Pl (int trend t Ruorns the Chovecky at jhe Specifrea trcten. 3+ Sobsting (ent begivlncun) + Rey a new sting thats SObSHING af be onigiray sting »Slowting from the Specifies inotint. 24+ Sobsiting Cit beginindin, ind ert notion) + Redon meus Sing trad 9 Sobshieg af originat String Sherrting row the begin Inctis fo enoliag ck — enc! Inclin , ya bolt tn Clay Then vipesent POEEEEEEEet “7s Gg 5° Contes ( Shing SH) = Con@d eras -the _specifite) win he Origine sing. : Sii4g fo the bnel Of tee & LO Upp lows! a6 | Coin the Sdyiney fo copper Cou Deb lowe couct 4 J : Conv the Sting fo lowe Gu. Be trie 0)! Rear Rirnows lading ancl herelig while speee from daw Shirg. gq Uplate (char old chav , Chow Replaces ay eauyants awer)* of fre old Chay wip nice numba? Chovac EY | lo+ Sloat eottnl Sting, prifinr)* vy coith te specifier Prefix. | chucks if te Shing Ste 112 Cnonlaith C string Soffte)? : : Chect. 1h fa SHBG trol ert fe speeifrea sodtit. | jt. fncenOf Cine Ch) i of #« specifier [efor he ince of Pe fist Occovenee String Chasachy 1% Sreux BF [String HPO Depves fe inter fF frsr cltorents of foe Spteifra Sub sig. to. fase tnarwok Cinkort: ; Ahn indo ofve last OccOVaNe, of be specifica Rey Chovac fey 16 ~ (astlrcten Of (string 3h): Retorrs Fin incimol te taut Ctevyante of i 7 | ; | fot Specifies! SUbstiy | 16 Berepyly: checes vE He String vy empty. Me Contains (Chat Secyuance "Sequence See crea Chery nf lm Sing — Condeaind Specifies 13+ split Miia vregudt spliy fe String into an amay’ ef sobsiingy aso! on dhe spect Hie sregqulow expren” oC sing anol! Sdeing) + deso SHiagy lenicogrephi oily Squine of Chorcotes ey. Conger Compan go-valudf (objeto obi)" Contents an object S| Derronshale atid ferent dypy of inher: | Cyampi. program. / 1 f hen'teont ane. there: 6 | thee one 6 1YP9 of In Thay art." < SIA @ mollikuu O mollip¥. GD HierorChicou O Hybrid. (1) Single Joheritence ; Single inhenidtemce in jae OCW) Wohen a Claw) inhi Mnhow' Fel fot P — Stieg or Cpr yented or Nene Cr joria votth an rom ONLY, ont su Pur Clay iomplet i Clou \ahicut String brane! Pope venice CString breina){ flrise bavcmet = Nb7Gre5 4 Void ottsplaylnfol { | Syjtn cout priatin ("Tai Uaniel af breve "4 bane eee _———— Clay Cay txkney Verte int nombty Of on; ponie Corl SIG brane 1.4 numb 20) { Supa (hvac y ; Ini nombard] Deo pervs Of DOO fe cliplayirt Of SYstier cots pai ant “aan Cons hes” + pornrnr0f Poo 5 J Cla main { ponric Sadie Void main. (Sbiag eg tI) Cot PY Cur entw Cor CR ‘fencl” / RY: seliplaylnjol Con trfo 07 my Ge may Cow sdlisplay y | ¥ © molfileat inheridonu: molt ppheviderne atfine, cwherea Clay inhuth fron arotey Clow, whith iv forn inhewh po CinotarClay emiy CAS preenchial 3 vec af Classy ,eorder Leon aie inbur bing pre propa bY and muthooy ef ii perod Clow Jk oto = for te Yeux Of (Ok ang Penoty Cott Oganijotin g rhowutinny - Eyarpict 7st tiiife flow Vonicut Void — Sleat 4 Syem > outs punta ("yenic. Stato"); j ‘ j . Cle cot Ovbency venice vor otvivet) ¢ ; : : Sepsis FF eptintan(" coer 1) bug, obiiuer) ; } } Clary Spori Goer evteres Com C oid speeclur (4 » priodin ("sport Com 1 speeoting UP") 5 SUH “out 5 } Clay maint ; 7 pubue Stedic Void rain ( SHIOg agile Sports cae obj = NU Sporblon (9, oby » Slee 05 obj dtine Os ob) * Sptectuplys | 5 5 ‘ QOrnoliple inher dents moltipe when dance lotrinot evita Javon. Ta eee + Javea anu Sing ic inhiilenee, cour cr clour Con inherit in My apes fron 7 Se eg Gt ( purmen tiny pullin, Inte. wonitr allow & Clout fy inher dm method - Ley from = mollip rnev focus. . 19 Node r4y | @ tlierave hia hhevlonte, 7 —— Hiewarchicy inhen'lans ise te ol inhavilante fH Cop whine MOHipU —sUbckyy! inhewd from e singh suprrclau. $6 cfurny a hieorchiad shuct, Siniby fo fren pedhiye the SopirCloy iy at TAC dopara fia. fubclail One at fix Jouky Jeuotr Cath Subclass inheyié -foe propentt9 anol mvthocs af dia Soper Claw, culo" foy Cock VLU Cina pernotin as organija he rbostwty + tat fone bus Can -Aaue th om Un qu preopakier anc maha inaddrti” 40 thok inhiyitel fom tn sobciov. Eyormp i * Clay Shape ¢ Void Avot) { i sy seem: outs printla (" prawing o shay") 5 7 5 KClous cive extinct) Shape’ votd craw) ( | : syikm: ont Iprintan (*prausing 9 circ kt) I eew Pec lang x dinay Shaped turd draw 0 { cH 7 | sy km: oot - printan ( Drawiny ave erg Wy { | i lou) rain gd pobiie SANE Void Maw (Sting ongity) ¢ | the Shape tik = new Gvek Oy Shape eck ant Retange ts, aS Cinch clause) y / Rect» AYawO)', @ Hybrid Sannifance. Hybrid ise tombi nation of multipy typuol Inher ileme gether Hi aChiay ana mollipl inhiidance. Jl atbus 4 Clea I deainhesi# Proper ane! maethoos form mathpe ctu I6! Ger Canbe athinve fron acon pinativ of singy |inkevitone . ana moltiple inhibrer egifh hyenid in bev tne hotles Canha Ipalts povest Grd opener porint COM yeuitieg TA & Mart Com pur Taheriteme Astyeathy » Evampu! lclau uhicu ¢ / Void otviw hyd / sulkm-out: prin (2 Salat i being hiv); y B Cleu? Cer extence chica | @youriat | oid avi f Syn -0u + + prictanl” Com it hein arin’, } [Class reba cyte bxdenot wenicu £ Qow vide | Void ctvive lit | Sy sem -out priattn Cmnoks Cytle #) being dviven')y | . 4 : iclau main{ pubic Jkitic Void maing Shing avg it Ger obs = neo Corl moby gf obj l= atte mopreyle()5 ops sO rests obj! > arivedy }- * aS Eyposn hoc Clow ranstadl clay arol Inttrfeer acre Obr'ftey, fore tasin ofhet won an exampe fav Cath i a Claas : $ Aclay njavo i peur pri cpr objech Lg) ercopsuloty aera px tre obiect ana metho. 40 rranipuale ther clorta. ofa new’ Feyesorce X Object) Coun be Cvedkier SEA clawcan reve Coonshecd? fv, ini bvotiging onser Slode. XY Can Contain innpterrental poednod encr absrec me Word, x can & joker’ kel py sabe lout) Sop pov singu inhi lant tn Jane. Eyamplet Class rreclengel tat length? jad width’ pubic vretlangu ig in kngla , hi dinghy « lengthy yi wid” ewiath} int caret dng 3 Abstract Clous: isa Clay fod Corot be in glan Coke! ane af An abshe ct Clay gin abshact method. objeth’ ofan apshatt Hla wohing Contre may Con % Cannot’ creat Clouy «94 Gn be tb Clalito ¥ Can haw Cons} for ohithare Ca obC oy ObjtH 16 Covecr tt ¥ can @nnir im pleren to! mithory anor AbShall ax boay tea mud imple mente by contveie sobelen) , Ts ane - X soppy ‘ rn § i Hee terete Ack hoin Ieplemunted ene heat ara q bya Me teoa é can evra any onty om ahifect Clad. eyampiet abrhart Clan Shop ¢ abthact Ubis enew 05 yord YourReas Jupiter cet spintan CResaing Hu shape) Jo gyda: Yan inlokee in jouer R veprenne aonsae ¥ Gord Ke nslontare ¥ ankins only anpsRact maedhest % Soppon maotliple inhevidance , A Cea) Can jmp oat moltipk. inotar i £ pefmia xtof your Ft implemuntyy Clave molt faites + corthar dicta ding” how fhty Should acnitueit. dyer Comecttor efanrkarh me thocts fox CRM thot impurmint id. 691 Coun be inp menka by Clouser. anct Cons ka Qam pet a sales pte reme : esti , lnky pte Dvawadt t Mtoict ara) ind DEFAULT Colo® = OxFFO000; umnie, ayaa praprim fhe cumonshoks ait aceryy Specifies ingen, | Thee ave hy types of axcee specifiter ance Pale Gow:t Ve Public De PYIVeR, 3+ prokotor as pe fel. oe Public Clour Spaclenky¢ poole Shing centorNome -"Spse"s prokeked int . Skiff Cour = leo; IM miSsron Cont = 105 privat. Shing Dive Chey rene « * Raja Rajan" ; J Poblic Void clisplay Center Newre Cod System piiotin(" Spec Cents Nemes! ’a cenkyNons 3 Prokskd od jiplay so Cau ou : suslem obs -printanl nowf Haft 1 4 stiff oe)” J Upid clij playmission Gur Of Sgsteen cut prinkan ("Moral nisin! + mistionGun.); j Piak Yoa aisle System-od -pindant "cenrvane Uors "+ pivee foram); Dive forNleume Cd 5 Pubic Sted Nola main C sting argilD) 2 Spots Lenker obj = nes Spatelwtroy5 obj + clisplay Canto nam 0; Haceesibe oni 0 viplay SlaffCor Cr) //qceestible wa ly 5 obs + olijphy mistionGunt Oy Tacecuior iver pc ott ratty wt Pca Spats Misiion @ylenct Space Confer f Maid cli pry roi ended Od Supt. out Pink un ("rnissior Det 4 Sleds ores " Sled] reunnbern bina Signa "yy

You might also like