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

Unit 3 (MAD)

nsdictionary in android
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)
17 views8 pages

Unit 3 (MAD)

nsdictionary in android
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
USS : et | 1, gbijective_¢_StiNeee™ ans: > omjective c is & qeneccs putpOSe Peogsernmi tamguogé poogsamnmning tannquage lgjective -osiented and it is @ 0 tanquage used bY >this is the main ps saxon Apple #08 +he os x ond 10S opesa ting systems: > rnitially; Objective-c Was geveloped by NEXT £o% as NeXTSTEP OS - objective = C_ x09 SOM. _stsuctuse + . ese PsocesSsos common ds + IMpew pace . xmptementation - Method - + Vosiobles - statements & expses SIONS - comments - = # imeo0tt < Found imtesace Samp! Z woid) samete Method 5 @end actiov) soxmple CLOSS method = vat Wo), amplement _cvoid) Sample Ns L0G cQ * ello woe aid, @ end irs “mainC) . oo. ey qa in objective ©" class = Ee sample clos aoc initd, rsameleclass Sample cusaq-metho dds 2 /l* ™y Fixst 60 Somple class + sample Getutn 0; .§ oetS Oly he PB0ysON * pe Ps0gsO™M # im ceSsSoe comma ' VO.FIOUS e post < foundasiog Ea tye ASt Line of + 1nd> Which foundotion-h > 1S a +eus oO objective -¢ compites +O include foundation'h “pile pefose gong 40 pcwol comp iLation 3 the wext tine @ wetesrae om ites ace - Show how +0 c se ate tthe nextline - cvoid) sample Method ; Shows how to declaye a method the next Line Qend Masks the end oly the inteshac the nextrine @ imple mentation somple class Shows how +0 implement +he wbe face Sample class, the next Line void) SumMPLE method £ y Shows the implementation Ob ihe Sample ‘method 39 the wert ine @ end mosks +he end ob- the implementation - oqo consist MAE Vie 7 1 will ignosed by the compiles - ee _y the riext Line NSvogc--> 'S amothes cone im, okjective © which causes a nelio, world! | displayed im the scseev) - 5: the Next Live BEXUINS ne volue oO - . | ., 5 OF VosioUs . ~roKen: objective P* a SO et | — a Key wosd _ am identi fie® constorrt = syeot . * cote: desir ato 5 The SemicoloM is a © ment : ys nsl0g cM” Hello, wosrd !N"9s Function _odject — Afunction is o g pes,posm oO basis unction declavation tell sewn ~rype and soup oF Statements “that -togeth 6 the Compiles about ts I af pasametess » functions NAME, Syrrtox2 Getuon type) amethod-name + caragument Type!) oxgument nome! join oxgument 2: coxg ume nt Type 2) caren wame2-~ jomng ocagurnerrt Ni: C oxy ument TYPE nD) 064 ument Name MP body OF athe function 7 cine) NUM! nNum2 Cart rum £ EX’ Cnt }mor : tart segult 5 if Crum) 7 uUN2) t wesult =num! 5 se y ese, sesult = “Em 2; Berusy sosutt y “nome + coagument tyre) crea rey Per tuned : : bo osqunent Nome! joining » erent 2 comgurne” type 2 osgument name 2..- going esque nit N! congument Tyre n>) acegumert® wome N x “ Foundation” / roundotio: h > ns okject ‘oma NUM2Z Cer) MTN > @ implementing Sosmpleclass ce \ Os ase Gab I MLW and Num2 : (int) nume 5 iwt wesutt ; if Crux! > numa) wesult = num); else wesult 2 MUM; wsetuty Sesult,’ | y @ end mt maine) £ imt a = 100; int b = 200; jot wee ; i Sample class * Sample Class tie and Num 2+ bas set); 2ctcs rsameclass max: a ns tog C@™ Max volue is * anes BeruIwn 0; 3. oecision _MaNn4s een & | gtatem ents | Ss Basevses oe paper executed elesmined +0 be aise. Ae conmitiey Wemee ayres of, Secision maki ae eee mmaleng gtaterrensts: 5 xf statements if Cboolean- exrpsession) 2 * n Je statement wit execure |b boolean expression © 4sue ¥ / y — af else statements if C BOO Led — expression ) z Je statement wilt execv® ‘i RE is tHe oo \ ese z Ne spatement will execu ve .Ge inert wp sraderonst _5 nested ' {fC boo lean— expzessiov') when *he ‘oooteon CLP? s6i0 2) ea ts, eee ession fo = c Kpooleom - ex P a ane 8 Jw» Executes wher y t ere coexpression”) g i one mg. => Execute a statement 3) gxoup ynultiple +imes He condition is false white Loop while Condition) 5 statement 6S); a —» ¥F0t 100P £08 C inits cond rtion ; inczemertt ) F eatement (8) 5 —> vo while loop do 2 srateme 9): Y mire Condition )s of statement

You might also like