0% found this document useful (0 votes)
46 views8 pages

C++ Notes

12th C++ notes

Uploaded by

chitrabapurao
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)
46 views8 pages

C++ Notes

12th C++ notes

Uploaded by

chitrabapurao
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/ 8
| CLL¢ Object Oriented progcanmieg— ®_Fentures OF AOF ca - mars) on data rarer +hah Sail without @_@menres's 1s. procedure ( Data pooted) permission Acces $ @® Progam ore divided into onyect 4 @ ves, Object hos iS on dasa and Function G@ vata is Hiddent ond _zannot be accessed _by exresnay Fun? commun icase uurh each OtNee @_Objeck_ may funcwon xnrou @ can be 2aSiby added @_new data and fle (Dhenev. DeCLSSATY @_colloms —_bottore = up —appr de: igh. Se DeFinasion OF Cate poradigm jeans it Follows Cat is mutts i tnres padignn Generic . 3 remakive 1 OR\ecr c cach) in program Scanned with CamScanner , ' t 7 = ¥ EA “Advantages of cpe @® ¢++ 1's highly portable tanquaqe and 5 f 5 JS often” tne Lanqueg. OF SBLcH OH ‘for mwrt- device LU -plarForm app devdoo ment f L @ cpp is onject - Oriented gsvgramming - lonquage Gnd Include concept We | claSs, “an neriiaace 1 POlymasphism 1 data L absocton Ond encapswaH'dn @_cr+ gives me psew complete Cont! over = memory Management t ¢ @ the wide sasge OF Application - ADM Uru r application tO SD Graphics For Games to Teas time masthemasicos r L ——— : ; LF Difference Bareneen. procedural progsamming VS Object Oniented programming ! Peocedusal orienied Object - Oriented io. M109 wrogsamming fEXdGs9M10q Q the pogrom is divided The proqsam is divided {nto Smal Poot called Into Small. Part Fun cton a Cajled = gb eu. @ PPioceduow programming BOP Follows Follows as top-down bottom-up approacy Approdch Scanned with CamScanner @© Were is M0 access OOP has access Specifer in procedural Specifies like privale ProgaomMing i Public , protected 2c © Adding pew dato ond Adding new date Fun) “Is not easy . and fun is 205 6 ID _proceduva poOGrom- Overloading is possible ming Ovesioadrag t's tn ov jes osentad NOY possibre © j fedQCOMmINg © &- Ci Fortean, Pascal Cat Tava, Python, Basic ere CH ett ¥ Bosic concept of Object - Oriented Programmed @ cass @ Object @_Encapswasion g POlymastphism. _ Yvewitan ce : ARsTracH'on . ! _@) C1053 + — A Class is a daja-tyrRe that has OWN Membess. i.e. data _memver and memnec Fun - rt is the biveprint for an object In Oop — Object are variable OF type Class Mmnce a ctass is deAned we can Create Any Number OF abject belonging tO that class - Scanned with CamScanner = — @ Object t= 4 Object are’ basic wun- me enritfes 10 objec Oriented aystem = Tt ts an entity with Chavacterisnes God behoviour anar Used Gn toe Obieor ~ oriented _weoqwamiming bath wrote a 4 8 7 They ave Used to accais Members Cdora and Punevon) oF | HS: C\ASE _@& Encapswasion -— an In Op encapswahon is the concept Of @sapping toqemer OF data and Tnformation WW a Single unik ~ th ts! date abstraction or ‘data Hiding ~ Tris possipie AN encapsulawion brides the data at Snom ony the fnformat'on that is wequired +0 be dispayed @)_ polymorphism |= Poly Means mary and MAyphism Meams form. —_Ppolymaspnism is muUWtiple Gmany) Form - Some method bub different behaviours = CA+ pEEQramming Ld%quage . Polymarphisx, is Oenteved Using Od Woy. — Operator evesioading = Function avestoading © TInnesitance — TNs he capability oF Class +O. innesxit or desive poopestes oF Cnoroctemsties orper Class K Scanned with CamScanner ~The Class derives propesties From Othen Class {5 Know aS Child Class oF Sb Class. —_the cass fm WMch the Psopest!os are inherited iS base Class or parent Class These _ave £- types Of Inhentaoce @® singie anpesitance @ mMueiieve mMbheritoace @® muirigie — anbentance : i Higsarenicas Inheritance @ Bywsid gnnentance @© Ab strachon : - Pata absiwacton or Dabo Hiding is the Concept af hiding data And “shoming ony «elevaot data tO -+he Clinal Uses. 2 ~~ Advanta: eS of Oops — © Cop is Faster and easier to execute @ Cop provides cleaw Structure Foo the PBSOYTAL @ oop haps to Keep the c++ code DRY Y Don't Pepeat Youwself' and makes AHe cade easier tO maintain , modiF. and debuq 7 @ oop maces ir possible to create Feu! yeusable Appiicanon With tess Code Qnd Shastes, development Hme. Scanned with CamScanner igs! rT ~y I eass is a vser+ define daso-tyPe Loelass Contains: members NKE dato members and memes funcHon = pata members are Vdriabie OF the Class — member Funch'ons are used tO manipwate — Hato Memvess daflne tre pmpestles of the Class Whereas the member FuncHons defloe +he behaviour oF me Closs. — *® ciass can have muttiple opyect lonicn pave peopestie; and behaviour are method twat dato Memveos ppp Syptox! — class class-pame access - speci Frer + pata ond Wn” Access. Speaifhiae + Data and Fun” De ~ eK Closs can, the dato member -cOill be Apeed limit: Mileage “etc and rember Function can Appr tesauces 5 INewase Speed ere Scanned with CamScanner ‘These Are three access Speai riots * Public — . Members are accessible WoM Outside the class * Poivate +~ members cannot be Access form Outside the class. * @spteded _ Mensbess Cannot be accessed fsom Outside the class, Howeves they Gan ve accessed in iwhewted ctass ee HF Inciude

You might also like