0% found this document useful (0 votes)
119 views35 pages

PCPF ?

Uploaded by

Gophop Hdud
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)
119 views35 pages

PCPF ?

Uploaded by

Gophop Hdud
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/ 35
ecccemna i. > Pecradigam Computex aay Fundamental ‘ NWortroducton. 40. regan ‘craigs and Core languoge [SSUes et s Datrpexative programing ipancadligsen Eas | re ae pein in chee ae S De Clorradive _Paragramrming—pooradigSm = a Piet lacrokive_tensgtpniny ponds —__ Lee | | | Gogicad) programming) a p agpRamming —pacradigs beri TN ie Cconcurventy &) Alternative Pocradime Pelt: | Cseberip ting language) la Difexence behneen call by valus_ value ond to hy Roherence” 23 Whot Oxe Rowters in C Sorguege 4 Bet ish otc ng nC Copregparaming Pe Q4\ Use of scant £ qin i Soiference lehoven loca) variahli 2 g}chal |b) Use of stoke voniohle in C Prprommning | | i } “Module 1 frowadigsmn - > step- 4 step erecting — Sat consists of | exe Given 45 the —compuder_to — Ox execute in even _oxder- __ Sart focuses on dacriing bow a. preening) — ml ng-—to_oparode _step_by_skeP- LE Procedure avid —parogeamnrt ted Oviertated Programming _ Fe "4 ao pea son thd Se a a 5 _-posrallelapeocess. qpxogprarnniing cE arc ra ST ten am BE (stearate sag is oll abot —laidding Closey~ tp’ hurar’ language bsthinking: Wart is opposite of lnpercoctive. ee tho f _loracthey —“facuses on see Oe mn ut ou0a4 Complexity od bxivging areosramening Jorguige Fro hose ProgPOmming, a Functional q@rojramming ga Dodabase AMON TOMMAING = Brotedure Onck eager ier ed SO es, A crave [they ore Jist of instwuction subdivided into aes = ae ete D>Furctional See Bat Allows Anp- dagn ofProth . ~ & i PogromMin§ 2 ord Avon _They__uses pore function. y, Pure Seton - Pure ae are. those faehn whith do not cltpends on Calobal — _ Vorriable class member das = — Cuse only in one oPevation asst 's. aretuarn _valus_-tas_erdivky dependent a on ne hist of _eorgamert—- aeceived os ak = = Oriended qpxogaaeneing = — rat ic Orritten as collection of class a a een a all hype of compuczction Diet As § 2§-Tava_,Oy-thon, C++ Bao 2S aheronce = Cleon Boe details a objet SEE NO, (rphlag = hee ant class or evchty Cay dtoke many Seta tape tek Al oP ay Bene | f gw Hise eee Can_dexive result 3 oyamminy (= this kind nd_of a we have knowledse tion A9 ine pea : | : Bre is lased on tacts - “a = —Fatts 3 Fundamental assumption of aay xis men Fe et Pac evo is_ eet ao ae Como =) Torged: Pro sranann And Bm sistem —__Focus__on execuctton. _ Sout le Proyourn Ly compiler ano pes Colo eae [ene out Put \Peoypore) > E egg ect cod — \ eorex = conver+ Jnr _highlive Jorguege ido Machine donque pan > Serocting aystemn = Run programe and @xecute _ obrndempretodion = compile and_exeevte tooth t enderpreter aw. => Unlike Compiler _interpreter-_stoys caound tor — |She. execution of tne aplication =>ped_is to cus ot Control fix beth Confilaction Acree te careers =yxd_give. epreaker Plexibility_and compiler give Source Droyram — petra eckson pe ent Pe) SOAP Be olicceme ria camre adie ~ | Oscanner Cexical Analysis) | Poser _(Sundox Analysis) ee aE. | ema Cole Generation act is a Prose which dupend onlye — C_Maclaine—C nine Coda —_imaiprro~s ee IComptloction 4 See aa etal Masses lox series —o {Sac haces matin: oh 8 i , fe = eyo enlila sedan bG? mneaninguot Propninin, ae ered end = iM Lert cal Anolyst _ Phase | ih T= tokens Sri) , \ : tnt main C) 2 int inti = é ink} = getint ©) | woh aie eee l : Y fee g E Fasc I=the Scanner reads « a. intn tokens Rie wiareee Cee DO WieicettneleicceeME teres i : li) Reduce size of qrrespann rs E Phase 2. 1 Pecrso Ss : i ) Ss ptenns ind — Pars Gr sees ___liNseb organizes —stokens into 4 Rowse _sbvee . : echere ____{sseot- of pha bxee '6 Profpram rom Luft bo wright oy Sas ankens which ore aeceived 4 chrom Scanner which ore Glled \ooyves. : oie BN yiree eles on ach al mretursive -sults Known as Conbes+ | Axee_ghromme Pees cull => alas )bAA Corder Pree Gramme: - ® = bbs |oBR = cOhexre re ——fecnhen on bi bend ade od 8 oc We corten on Me Right-hand ide. MPive PDhove ddbbobka “=> token . Derivation = - 8— o® left aa BS ost AobG Iderrivatie n ao bs AX bh a B® cd-bhabs EN IPlnase 2 attic “Apolysis 4 ilert uses Sywrtae _ctyee ee tee and. mbol_4alble 4p check “whether PVC yp reo "7am 1S __Consi ea: Semantic error a ty pe init nootch nese idencdfier misuse PAS es ee = DME ood Nien — : _Rowameter_onisimekch Types Pe ee liste . [WN ectechic 2S dynamic Nes eh ced belgie > Rules check ok compile -Hme cor called = AS. _Shodic semantic HU nar cl 3 i > Rus check at Run dime £3 error, overflows Wee Mises tls paoal on td ecewe input from Schementic analyser is _tree Can _be onverted into linear xepresevcladion —__ = Post Aix | ; : YW oalth+o)e d) 3s be +d # 2) a= be b+c#d —HThree addregs Coat a = Ckd ter wtb: = ong Loy? | acest [3 [Guadruples a o ara w so CSL eee » it | Phase S' Torget Code. generation. i es ere - rslake_cocermedind “to i ed U9ge CMachine- LONI M9499.) Noe Should have Knowledge of stawrgek lhviucg, BENR rst _-thing Selection— of InscbrucHont a are [Second Shing ‘Register allocation Slomdervins of irShructions ——~ =| Code _tKyproveme wh — Plas is reterred as Code ophimizaction Hat bompubes same result mene ebbectively. ae | mene Autclly sith lass incite memory. -— a [Nome |= tn reasch_progaimaivp-shOvguag4 etn a dna render “nme allows _us__ \ | 4o_xefer to voaiablis ,eunctions classes »-they qaovide a lovel_of abst— } + ometion in tha Proezamm - inding ‘= r= isan association behneen ios There one different. times at hich binding -AtcéSion are made a) ee au dime_!=. che conto! flovo_ 4 _. set of cata dupe , key Pitas: RP. bee Otis main ilies a penis M822 _ovnc\.- ee of operons. Barge ee merits stime_!-" Some issuts { __ ove bgt to bet clecided hy ae arg nage innPlementor (Progam = | [eBags ire et Browne ry Ishoosen ee calgon, pdockastrucure name fF Conpile aime t= decision ae Compile hme _ ie i Garaging Wighlivel Janguage 40 enachins | Co. ? \ !Ths ron is_ not cuswally — (5) Unk Hie Qx0g aS acce loin shop etner oy Hae Minkerr: oS the =himas cohen : Ss ct the Orchive Vetch Vai ee Eig a execustion: Erle airing) ovrgure oc ; aS ee ee ———— Stodic Binding pram Bindling — i 1 static Birdling'= Ee. FONeY loa svg} od name is Same Rasygurentt & MS Tamektod. & é. Tava qrroyvom ost at -0:P_( Reagan speaks” class “Teacher extends pexson P Public eh eee VAIO IL WY7e ObC(K MATS ce _oudpud 1S gtetic od Dinaméc = _PLYSon sPeak = Teacher speak ea e¥Son SPLak 2 4 odin) oe jatatic , glans, final Methods a axe _olura ss ing —ucrrialale - Chupe_incformation do sun Hu vohere it uses dhe ee = Scope er ee ee peruciets. Jarriable Can rave 7 existance pei eres ned yortabie It Can nod be excess. RSCG LCR id Scope sles tel) Us if an enth te vis: at yn Policha Wected Subyottine ip £9 PADS, QR A, x Ay As, Ay Ae 9 VOT; 2 my Pray BES) 7). PLAS ee BOOS = = Now: a ai = ; ee = ee — - “3 aS. |—-+ = ODE “ood 4 rs pa (Aa) 3 Fehs)5. Norn — ee Gi % re | new wie use local leclaration durin Hot — a tl . d fia. —-—-- y= J Disrokic and —dyvamic Scopirg = hl Fs Setig whi ars LomPile Fima is an C_scopir} DAHA _SCoPing—_cakich hoppers Ad- _nein sna ic | tee oo BsS2c/0) 1 ee = Vary 20, vEnheger f pls @ Qxaceduse PCn.rnkeaen) | me begin x i= Cnt 0n-3 fouteen Procedure A uotite Cx): —O) end ! ie : i“ eal gia a wom te Cor): ——@) tna Stodhc : Dynamic mn His Scope Is check an this call of furetion ist Covdition Check Tn moa) Zn Hirst wse =rn Second condirhon mas OGe16) En Seconk Case aad Sau Qo Army C__— Pe is scoping tha , focus is on Scope lof the voctiable = ——_—_ — En Dynamic _s cooing tne focus in. ir Call Pa itd PD an oe Modules |= p+} viata. | allows Collection of object _, Pe —Euierotint., ablesas Noriable ane S2— Ont the encapsulation im Such A _way “Poict a abject inside ove visible do enh other. Poi BS ohect inside moybenot visible —oudsicde lunless exposed Point Onjecs_oudside nag ok be visible Irs “fates exported janet bife Aime and Ctomge ax 4 nitod_of chime bedauieen —fB (ee we ae Be ic a Mean ant Sk tee i ar ae | =Tno_jpame_obyet+ binding —Canno-t havea he ge ow that de tne f =) ject Mfehme : — . = ok | Pete cae. cal variables abunerd Ond eee ee "Td is Comesponds yegeo aNo cation | static Allocation { Dstack Allocation \ Yeap Nocation L Static AMlocdtion:- Objects axe a} Stoney) Wen andlakde em Semi aes thot _is elaine - Ahomg ho | Cont lex produces a_yoried =bble such 0 eel Collection, Nees ah s ie KC n a table, Prone abies” 2S stack Allocads Object ae ted ard cleal| ae Piet meal oe palleectel in loS4 aes Subyocd ne ~ er fee alssocdine LO Deora ec testal- _ Sub moudive 8. Vortrables—|- fs upreetree eo 1 | [Sobroudini r ee as | pee iool Eptewrslls Cans —ineinesey r= a f } les | Steck is used by csecursive. Function Heap A\\otedion_! _ 2 sitet tne Hc retrace rake allocateal imwanystin 7 s Gene stadia a wien” ea meno Memsry meee - —eap Mera lucas sufbeam Faron Geen even alate t eEEES tes oe \e op ts. \Sedl_f Shor 9S \ist 5 sexe udhese_ — ere EN ee pata Pe stiakiewoeh update RarmaAjon. Turpae of dada dypes i Yoe define what Program Should do. 2)To parte thot a preyram is meoninyhll: | QyTe aimize the use of hardware. Mee tye ck | => Every definition of objects must specify object Exe ape, mary of the Condext WW ushicl the object L appears Yrust all be type [aoe iyo icheckig:= | _| Te 1s a qretess_ensurcing_sthot the program | | obey!s Sype_conmpatibilitty srslas- __ pare dy aTyee Clos = : = : : __| Npiladion of type wult is known as type clash | Li 2 - bed eee ee i Shee See erie a | ae Check Z le bs | string a = news ctring ("Hello coma”) 2 PhP = Coeakly) 8 Siege , Sroorg & Dynamic — IM ae Ewer, 2 g& atahe — Java ———idstadic re — enh Mg as Corngule Brno 3 Pet a ayping_= Bais Cin ——|he_shyping . — (rt - ShotH c Cay a, ttt) Dynamic (Put Taug <3 72 PhP rh Skringy heb edd Gb) = a =“Tova_as sector north pod” _ Partt Cadd tte Os ae /Aeruk a” Ko 2k Type gua cet \ * _€ ee Se TU Numerical Cimaine esivoltinte) cs + tou chiral (6 xeric) Numevicalns ter | a UW Rase on dhe Godage is based on | ae OCCA (ei ace ‘ hao ae ~ two types axe Same eee Coch Pee ar eer eee ae nt Aa ee ae: eS neva. hype urcaye) 23 Java , @ascle. { i _-Aype aimee Te | eee Bs Sole io si. nk Count 3 wie 225, i Stock } typeof sbruch 2 . ea. wd _decta Yi 00) ith count » & set ° ; | HSER e — ene ZN Exalicit= Conversion! (type (asding)!= Plow fy Explicit convexSion + \b00 lean reigned hong a erg 3 an mw double YL tong aoulate rimptict conversion bed include ZSelio h > = main este, chay y= ‘o”’ ie > ot - float 2 =X+Il-o | Orit CO raid 2 =f) x2)! | ; aca (oars : 4 | Ex@lick Conversion ‘ +t include Zstdoh> te on eee 2 a. cee Ant sum Crd) + 7 Rmirt-£ (“sum_= Bay Sum) J oa Mead: iG, a oe ee Whe Sine Anos, ae Tse System denevotes__consistane type Declaration -Prom intorrradt on - given in the Cg Pirate is i ype xrference nrefeos dn audomechic ovtac Saas -doctedype of an expression in progaa- inemring Jonguge: - ae ; + is oa feature which if Presenl Bin some of dyped Sarguoge: , ee ae includ. a Se ——— = tr <7 << Type of 4204 5° << [ ype id (0) nome 2&end J nue 2 pe of 200 LAM ce Supe_id Cb) rome 24 ot Const ik Tyee oe Oud =tufe of _S ans peu Ln cn cmm Sie Ee of 32 ust Th Ctt language drupe inderfate is -| ise keyusord cudn enc _doclare ype key wreyal' OCOn meee (=) A Equalify testing And _assignmerc!- |The eqtial to 1S called aS assignment | __| Peredor iy is used +o _ossign Value on the _ 3 Rigi to the Vossiable on Apa bobs tne | eval 45 equal to operator Cece whelner And given operands age e011 or ote te: 78's ri so aretuoms “tguedtherwis e _-rehuorns. Ed /-————Code_: stenplate & Class module 2 (neneric oy oma chon name lass & fun a sam It las not return a [Ei ehiminales. the need do create ditterect ~plgorithm far AMrerent data 4erpe- “a —PNaItggeS 2 UN Code reusability 2) avoid function overlaading —— Emy Max Cee Ty) weturn (X>9) Tx ty int main C) Coud- 22 Why Mox (4,4) 22 end | 3 Couk ZZ my May CEA ane Pear Ge oO! Code !=- —___|-+enlote Z class class My class > Wet TRr 7 Public? | My_class C14) FZ Qj ax Qo =Y Z d void Print C) 3 Gower EE © Value. of PD, is” Ze ent leet <2 22" lun of ee) PTAA es a 2 BS tal 5} con® ene : Lint main $3 My Class < Aint > oi \ Ci), NE aclass 4 Moiy> sor Cowl’, eunil ls oj |. Mint oh}? Prin)» return o- Ss Constyucter —., Class My.class. 2 Rablic: ny class C22 3 call Manetion Lis. sas Chadia x, inty) That ae _ Class obj-l— ay Classobj 2 oa = "eee end OR Kenqlade 2ClassT, class S > Class on lass & Ee ee 20). ‘ mi Pore — Rubric : _My_ dass Ga.) 33) 1 R= ee. aq pany Nol Oi 5 ae er ae rete a Volae ot Ds” — mm aaa DOE cse cena ps ae ZL Pn 4a end’ a 2%; i ET TT a i om rae a ee pa | Nc es String> bj Cs,suni Sunil?) 2 — — Seca a obj: Pint O [Ss TexcePbion handling = (Ruin Hina err) Fie handle musta Condition ake ion exer handling mech im_—which—is—< ie C4t which js a derek hardin [| rey Boole } dry 3 aid | Detect ana —rhoow exception sh 2 vv | an Cae ee | (iene tase MP leg ex cePtton fo = —_ | QCreote a classname rreckangle worth soo data mem- ibexs Aangth Anck breodh: ~ Add a Sunch on so jColcutate dhe ota of rrectang le. -+-—- + -———_ 4+ = - Lhe class has traree. Constructoy _ | Diwhich frst have no. Parameter - —|Naluss_of both _\troth_and breodh re _— ERG). aaa) iS Having coo number as Poramebers - —|--the two numbers ome_assigned as | Aingth & baeadin arespectively — i Wauing one numley a8 Rorramekey. “Lot length And breathy _ccre_assingned Hock Murnlody + —|Now Ceeate objects of the -vectangle. clas. Waving cone and +u:5 Porameker ee Lond “perindt: their aeaS os S| import+ ava. udkl_sCanners ae Pubic 3 Moin 3 et Qublic class Rectangle S Bs ind lene ! ag es \wt _loxeath } & ie Be alae cent anncra Carn | system out Pridla Copter beng) ali. ret in Ws Fee SaWNe CLT Y yo @ Babu sma — ‘be — Syste: oud: Pri bn C8 eter breadty'!)," Maer sc eee | \hid Benet Rectongle() 2 —_--— System - oud printin C& Area_of Reactangle! +») Void Reé-tangle Cink Lint) 3} System: out Privtin prea of Rectangle” t*b Noid Rectangle Cit J). aE): we eee ds Batak ve a & cs Z Public Static void main (stoi ongsL-L) 3 ss ___ Rectransle ohj | = Aa ReineaDh noel cage ——Retlinsle_okj 3= pews Rectargle (8 — = Ss Pri Syshenn: oud= Print br (0859. Nungtth breath ds _ system od Privd in Cob) lest) fs = ~~ = ec Ceompile Fin) aa on pa eiaphism ey Gfonction. overloading} and — —-- ~ nchon Ovex LY iin _ eis ean ee per ON i 7-8) Perelewtinkcest sn. Aa —HiGistetetence in aces = —___|_U Single inheritance _ WE |i Mubliple inherit ratQ_ Apa | ti Muli level inheritance pone BBR exigriealicionll when ca cen! Si ee __ i} | single prverectess of Clocs -Animal 3 a Qublic | . Neve SC eat Cout of een ee end | : g KS 7 | Lone Private Class Dog Publ a ca 31) |class Dog! Private Public) - | roid book OS Pudolic Coa Zo rs zB Pel LI Aloid bark C) $ ae Pe eat C02 inde mee = Cout 2 2 “Bocskiny Doa_atl_} << Cnal! Salon C7 iz Ab bark Oy u edu syn 07 i 2 3) No-te 1= Base class when: privately inherited Yoy the cert Sime wheat of = a3 Base alates become P= -> aa — ta publize Seer Boca class fp es 4 be Ainctioned ny tht member functions = derived class, 3 — eT —Thty Cannot “he accessedl by, Shjec4=o: ag = ed. clasc) eee eee Cori oe kaa a i inherited | * __ tleved = em = — Class Pitan 7Pulolic Tag | | __Cond= 22“ neeo Cee a $2 BS) 1 7 it tanger only in eras ~clerived class et atect Wimaliple J : class en ore y Pulolic Animal yy sei ae ee ‘ weep?) Za Crd) srpet ‘Wis * radi | ener: Sac ae 3 oi | Heirawchical | —tu00_4 aetn Sond_one derived Class. 2 = i class Animal 2 r Rublic _; ao ie Noid eat ©) $ sseediben, Pe Comte a Bork 2 ene Az ‘s a ee IE ans a9 a eublic | seid bork OS cou 22" Bowling! 2e endl 1 . * if ‘nt moun ) yaclud at Puldic_Al! Class Qummy | pblic Avimal , Public Dog 3 ae (out 22" cep "Ze end ly a Bs | Fanetion— Rusu, a 1 ial J 4) a Lek OE gt Ee | : class GE Animal 2 Public ; a | Noid eat C) , = Coud Z “barking 22 end} / a 7 2 f tnt ynain ¢) ‘ poy dd i p. al _eot() ¥ Ad eat)? 2 d2 Animal 1: @otC), eeturn ) 5 Ei ae Daeance Overdoading RUSS i iv Main in Cid a) 2 i Scher Sea? a so Se axe 3 os = 5 ~ = d Wwe mein) | Avimal dl + Loot zs Berea of Square" ~Max (49) ae mee & feo pl Wactansle ” 22 dd). Max (30,4) <<¥nd I crehrrn 0} g | | | | | | | | | | | | | |

You might also like