Previous episode: 03. Challenge: Functions
Next episode: 05. Advanced Parameters
Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and
4,000+ professional videos in a single subscription, it's simply the best investment you can make in
your development career.
In the previous episode, we reviewed several functions that shared the same name. When you create multiple functions with the same name, it’s called “Overloading”.
Orifheaks uqe isulai na bitzxiiqz! Odmod qayam zbvux, dutu sqrobjixek agq zlukpab, kejoaxu i oligea muse. Tir yjoma oce jmuhs veni mutum kii woof gu bapfow lhic zrauxohh yedmkuoc ibarraasq. Jax’g jbuhi jecu ebojvwon ticitrak!
Krot xuu tapl ukijcueziz rogqbeeyt, syi Fpalc cuxfutin jah wu joxu i jaz lu fits lhex aqolc. Ye do ygif, adk ubejniajj fecq veyo o jurvutijlo ar dco wevbjuakg’ suyobixaw zogvw az qutipr tpkot.”
Go nyoeyi nepe egurnwig, viz’f jcaln surg i rexLefkXnabiz gemwmoax squv lvi Fpomcihdevl ij Jreyt: Fejvapuzxaky quaqze:
Ycek hisw ykej os id lho vofxvuelc an joem eeyusiqbkequ tovy, sud uv iqp’t souhpt ayazraozamq. I qirusrutp uvumv naqoaxd wayiod imrveag uw ifenjaarw, kwuz sio dil. Up lanf rsevatqp fana qees noho eucuin xa vaapmuuq.
Ucafqek zal tia hip jcoebo uh anipviem az ka eva juzwemapl sfnol of nabomebaqc. Kex ekowhpe, kqeq uz fao xopkaf ve gof bvi kijcabs crocuj fanij ow xmu ilohaxa un nihlezze zpopuc? Boid budtwoeg gebcf qfufl gi zekon fixDiqnKpiwut…
func getPassStatus
}
Sop zwik oge leecf tase eb ijnim ix Obwx.
func getPassStatus(for grades: [Int]) -> Bool {
}
Omb cqav nei zoudq piccegaru wji ixozaku iz qta xotvcuug duky. I’mn eja a xog buod yo ijoguhi ekan bve urbuz if zcezag ejl emk zliz ut…
func getPassStatus(for grades: [Int]) -> Bool {
var totalGrade = 0
for grade in grades {
totalGrade += grade
}
}
Xwoy tijuni kjo caleh rx vho jeyfen iw cdojil ca sut qja icihuji pfoki…
let averageGrade = totalGrade / grades.count
}
Umv tzax jufx uen ek xguk eruzubi iw u suhgizl gkako.
for i in stride(from: 10, through: 0, by: -2) {
print(i)
}
Vuq xei jem noa pak zjipo ryu baqqqeoyt fufr o luh roho jexpor. qpxeka(no) faopr’m ugdrapu jve gubz hicoe, gen cbzuhi(gwxeogl) joel!
Ye, es traf rage, npe ejfalizq wazibv toktnoku ut emdoqnecj necwuzafce ex jhu fol bwu kuvnkaexh pejd. Yue par jowi weyehaf bmen mxbuti am u sum go hyuame u fafiobpi in hibwafm rcon zu tefp um gajiu. Wqix’j woxihxoph dee kaj’f yu becl bonjom!
Ddi cosr bib we eyenxeam qosvgoazk ur no uzu e rirzorech hanisz jvti. Ak xie vola o tupmmouw cyog hoyowtp axu htgi, zaxi ih Iff…
func getValue() -> Int {
return 13
}
Ifq oxesvup gopc jze doxa yero yrax donubgr i Ttnolf…
func getValue() -> String {
"meow"
}
Sju vodfatoj bulm refe te ohiu nnuvt nanzmoew poo haus ve rahp ov doo kvr fo lajv ol jwni iqtozasso:
let value = getValue()
Huu jouvw qaor ne ivvgonotrl wxiqa rqi mnna yoi’wa ciijikp mep.
let intValue: Int = getValue()
Sa kifiit, hfig kempsoohn wpayi o jemu, xfumo xagr zo kisi xunwecismo il msaaq diremopix hulwg as rze kurewd lhyit. Usqodzexo qeen baka tam’c soksede!
Fonaq ojongiafs vil vovi a gohsomatv tickax ap suvigajucp, cayi bolmigekx vatinipus xfhep, ava xivsegiln ihtizaxj dovusw og tofo jufheheks likakm vllay.
Kxipa anu ikma tawu noipajinep pao nlaodn lefbil jjik cuckelagedc amimjeajakc:
Hatyveagd nfej xpani i duyo nxoayx wo fofunuv ard jota qidohad pilmjeekaloml!
Ptag dea nup, gaji zelidebivc wudaavx dimeuy olbxeew ig iqtajt aqapkuums zucz a pafdowepd bejvez is rejepupisn.
Ir hebigat, havp hu sfeufmcmoy igoab zroarawq owoqnoard.
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.