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

OOSD Unit-5 Notes

Oosd unit 5 notes

Uploaded by

harshharshgopal
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)
37 views

OOSD Unit-5 Notes

Oosd unit 5 notes

Uploaded by

harshharshgopal
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/ 12
UNIT-S Rudlie w= ALL ake class members Sechaed crder Pastic uidr be ovaideble Se eveyone - Te debe members ant member Lincdons Lecheared public Con be accessed by othe classexn Seo. Te publre Can ’e accessed Rrom stam members of o ‘ wee Mieck member access Ww wwe a OSD operadon CS cam se’ chjeck of Sted chow - Privake w- me class menbern Secbored or pracrodke Gn be accessed oy wy we Fanckona inside are wok alowed Xe be accessed Bnecdhy oy ok os\ecs ox Sandton oodhstie sre daw. ony Se Wmremmber Sunckenk on see Qaiend Sundkers ane adicwed So access Me aivake Soko claw. “Mey are oY a chose: ener ise ss Sroite ote members th Ce Brerte doe werbor ore class menbesr dvradk ore Aechare dA LSI Axkolke Keyeosdvs . A Stodtc reemmber horn Coded aApectch charackerstics . Wese ace to DY erty one copy of anak mrerber ic crceded Sea See avdtne clo amd Ws Ahesmd by ott Me obyecks of Atak clase, HO Matter how mony objeck= are caeaked- Dwr ke Wreabseed bere any objeck of ais class is being created , ener belie wet sheds.————————————— an Myre. Re prekeyre of Cow Shor Cro ws ax Folocus + echasg-worne > Cis of - garemedes yj Consharrcdors Cm ee owtde xkre class dechsurokvon \- an adh anche Re Syntax Box dehertra HE Cons anchor eoranin ae ChARS * = panemedses) [Il conhacron dearer | ZL class-nrame> Csr of Conch ADA e ny Ke ayy tox Sox Seay i ooksid&e Ae cXo8s blesser ere COR Pe Oe paromcden)) FH conshenedor Aah Desh schon Deskouckon ic an wwshomnce premioer Soni on Edich we woke aero Lone never an oa Mean oo ble NS x ko be deakaen’ re ee eran! be be Cotted before an objec ts Kerkaoyed > peshauckon is also a Apectoh renke. Runckion Jame Consdauckor . Besancon desk sons Me class objects Coeoked aN Cons pxcXo + Ws Derkauclon has We Aame Kame ar dein class nome preceded bya Mie Cod Ageood.oe oe eee anne Shon Jeshancdo> - one 5 The Reskanchor TF on one Woy bo desknoy Mee otiees creake oy a ONES catia puenheade® + dethanie= > wok be Gete= 2 | wahue - trem omy angurcent = Rexdsncko> on sermons And As udomedls co CotteX® of ACORe- — whew abies gees ous Apace otce pied DS pekrecko> tea eS objec cocekes toy Von sh SUcXDm + TR Beakeacko> 7 oles ove Aerbreyed i pre nevase of os objec’ creation: Sater Sante Lox deK gre Les hwcdor wows one. wf class-hoame 2 ©? i 4 Suto fox defer HE Degkanckor oUrsde BS class J das nee tt Zdass—-nawe > 6D $ 3 Operator Oven ast cperadors Wort fox USE Cae Ka he Te Cat, we Gn woke dened closset- aay bo growide Was mess wre oferokoas Wid O Ageciodi EE of eos Sox a doko Ape 7 as anti rhy Ae Krewe as operator cuehending . fox exnungle , We GR ovadhoak an operadon 64? WW er a claw hoo AN Wage by jess OF > cperadon oveboadtag ts a Compile Mme Sake Abi RO Wek ee eal coneaheuewe. | fedyronghises - TH ts an Ben of Quing Special i weaning Ko an Cutshing opetabor W cee Utell Changing Ws orgeed ene Exaimphe : wk ay Beak b, Som; Som = ark; Vere Vortoler ‘a! and ‘bb! one of Agen honk! And "Sook! carn one beth Ww date Yer - fence sre addtlvon opecakor '4! Con cory abA we Contews of fal and Th! Tas ts becaste Ye addttWon operador f+! ig predefined fo odd Vortobler of burly & dota Nyge only. Lorrke a progres of FS operokor Comany opesakea ovetanding Wonedses 48 Cohen Gees as Poetix He inchude © tosdseam > Using Wamedgace Shd} class Count 2 priveke * (nk valve | pubsic t I Consdmnckor ko traka\e Cound to SGus 6S 1 wee Ged 2G Wego Nee ey : or prekx NoiA& opetakor +4 C4 S \ Ved Aisphay C9 t Corrs Sing Names Pace AXA y class Base § podics wei patah 6% |b faut C2" Bete. Famieton 4 ent 7 J i Agee Neswed i tutie Bare Posie : void params oo | Cook 2) Cdeawed classd s Do mur pe Tereritence i matigle ihertence + \s oe Geasrae of C++ erhrere a cor @e claw be ome eX Weds from more Man one Suscdass fg Wheriked Grown Mere seen me base clan. E2 ; y Molkdesel Therstance i mB. wate Lupe of inhestrence , a deatred clan ic created Row Gromer eraWed clan. (Base cle 2d Case class!) cons class A Chess es lon BY Vieamrelich Wherttience i Ta wis tyee of RNS can iene er ere one Subclanw ic inherited clan te Wore Shon one Bom a anghe bore he ee eee ee Row Arnghe boxe clr - reysy Maen WWre achkence Wrese Mor Ore Ayre oN Wrerarchial Whe athence iwWhertence yee ee a uae ig Lmphermented by Sail : ef Wwhertheunce | = Cxonrpre * and enudliple Rede re (Ro C++ TA C4t , a potsNer mefess Yo a Vortebie tok elke Mee address of aro rer Nawiokle . Uke speaker Veotelles » Pomrbeaxs eve a Sole Syre. fos: ercamphe poe poses of kus ee KAR Woe obAness o8 o Vostelsie of kyee wenger: A potsvexn of) Chanackex ee Ge WaAw We address eh a vaatalle of chasockes TYPE: AdAresses We C*+* Cee eee oc eee a wots Osigned ees eee ac Program ; langue ynd ene moored MRM We assignee Jocadkion - Mme Valve of Hie VNouwtable is Te Krew se decadton in are Computes Merny] ehene Me Ret fs Zao cd , Gtt Preven Ic A Creteserce) ope sakes | re Spec eten velardee addxness fox SP rcamnp he Mme adanxress Bras a Nanioble occupies, pik K Is & Vartable | AX dehosna of wwe Variable . “ " This Poinver Tas pow ts o powder accessible on LIM she Row Adee member Lonctions of a TA pots Yo the abies Sx uch the member Lonctor ts called. Skee member Sonedvons doth have o SWS pole, class , shauck , or Union *ype - 3 is power" is passed ay a Woden ment to all non Ale Ne member Porcher Gills ort ls aQuetlale ar a local variable wishin he sod of AW non AMC Buclous . v "Tis poder” te nok avathabhe Shove member Lancltors a Akai'c wmremcer Joncvorn’ Gan be Coed cotsroud Sony object: Ninlual fudkon Vs Pure Vixtwol forekon Vinteal Fonckon 1) A Vintual Jonckon is member forckon of bore class Whe Or be redefined & dexved chass. Pune Waka Fondtos 1) A pure Vtatual fon is a menksfinchkon of arse class on Jecharoion 1S provided K Bae class ond Aroclh be Letwed tn dented clasy otherwise Jered clan olro become’ doaxnack . wohese2D classes havin ee Sonckions ane Wok obshonck. 3) Sante* i I] code c 4) De&akxor bose class. oe Ww S) Gere class Kari viotvel Sanction Cor be ins wacked (be Ws ckjec’ Can be vrode. | 6) th Sentied claw do nok dredeRne vishood fends of Gere class , dren % Joos wer affeck Completion. D Aw Acxved class oy 4 we* dedredtre Wael fonction A bore class. Vina aloaknack - te rp 2) Sutra A= ; Visdwed uk derived class also becomes aback est Live we bare chats- RB Ay derived clas mest pedeSne pore Votrrod Linch °& bare class oMwercsice derved dass Bee Ceca es clay ee goer Ske bare class -

You might also like