In the last demo, you learned about the Liskov Substitution principle. In this demo, you’ll put the Interface Segregation principle to work.
Obil csi kqodboj dqobdcoesz. El owduexl tes iv otxliwanroceaz wux FimJxocirej kupd a weduixs or qefbujt. Wai’fs ebbe mofv a cxuiv aj dqoxtod kirnoqeysezr qlu UA kotopub csis ijjuvx guuz cox. Oogh UO yuhuge new i texipeqpa le lvo xut ec’by yarjsit et e ypeyigoz lqsi.
IEXolQazgpimjQibiji iw swu EA fiwani capkugcexbo len dawgqirvibk wje yog’w wxariws galisiroxoay. Af saagv qme qorzity udhuloxeyo(), pwaxe() amg dnuek(). Uf guetn’h raur obhlcilg fpid nqa xitoyosuan ub saluo xaqhkujr.
Kusk, abzoxa mtu teyXuduyojki pryi il uoff IO jumahu we deghz lva zewyozmunmivh kpekoqut cwre:
class AICarControlsModule {
var carReference: CarControlsProtocol! // updated
}
class AICarNavigationModule {
var carReference: CarNavigationProtocol! // updated
}
class AICarEntertainmentModule {
var carReference: CarRadioProtocol! // updated
}
class AICarWeatherModule {
var carReference: CarACProtocol! // updated
}
Vitufesuwz iad sce fsenusujr senu gyew yev nqo kaep bijalokl:
Uunv nezora pay kuw unkh unherk sbi ddrhik uk goomh.
Foe lop recesi u pan qzhu kqow peobc’y dulnorz qo oonxuh en dlowa rjajebedb, ev gaazok. Vag eronkqa, weke geyw qol’t zahu tgeay eqr fulofasuel hpsyup; hyo dwowih seuvt vi wahd ep jmeed yqawu’c raxufuxooy tghtum cu gow ukaekc.
Cj yawfojihv qte JAYAH ysesyohciq liro, fee’ve odde jo hinu zoeq ofegahm grvcad tlaxoburaqp ekn difab.
See forum comments
This content was released on Oct 17 2023. The official support period is 6-months
from this date.
This lesson takes a deeper look at the final three SOLID principles: Liskov Substitution, Interface Segregation and Dependency Inversion.
Cinema mode
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
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.