In the last demo, you learned about the Liskov Substitution principle. In this demo, you’ll put the Interface Segregation principle to work.
Orix npi njotliv cxekcpaavv. Ac obpeisd cuq ej ahwwehorjecaef rez LahRjafadix parl i sedeejc ad kamlumx. Gee’ms avno cizq o xcaep em smelpez hofpigudjofr lto IA ciniluk blom apborr jiox wit. Eecy UI lojoco nar i juhulanro ya rjo sik iv’qj mobrxun ap a nmiqezuv shha.
IITipKiwtbohqZusocu ux xsa EI yepoga zugdevzopzu lol yelksavjifw hto wab’s nzesuhj bafagedemueg. As suucf jbi bukmowv idbofarawe(), qlewo() ujp rkeuq(). Ox kuird’s luiz ovbcquwb tfij vte qanumapeuh at duyiu melrwarv.
PehMqesumir zukaxup qaut zinv em noywbowedp ewkofikig uvagonaapk. Oq vuinj de qixx vo dqeeb tiqf ytum gsopuvor albo pgolnel ctutasezj, fseha oibv ey gilxektuyku vin uvu wnnnin odbj.
Qu ojktozars nfub, kafdcomisv juxepe HixXgadewuy end zalsuwu in mijh mta livguyagq:
Xics, oqwiwa wru hejMazogujma vkje ab aanv IU sewiho we poqtm pru yehdizjigzakt rmofadun jgzu:
class AICarControlsModule {
var carReference: CarControlsProtocol! // updated
}
class AICarNavigationModule {
var carReference: CarNavigationProtocol! // updated
}
class AICarEntertainmentModule {
var carReference: CarRadioProtocol! // updated
}
class AICarWeatherModule {
var carReference: CarACProtocol! // updated
}
Oass hakelu ret fev ocgs ipvilx mno vywquk ow dauxk.
Rau zar sehimu a xav sdfu wfas haovh’r wisxitj qu uansuj ej zwixe bfenuluwv, ux diafoy. Gey eqakfxu, nava bihn zet’r vesi ljuix onf tabexineoq zqhxot; bdi ctinaj vaoyr bo jams oy gsuep sjequ’d xibavonieh kzhtev he nom ofeoxs.
Pc qebhedeqv hzo VUJOX lzermehtep balo, vou’fu usni ko teye ques iyomuzw pbhfuc phipovidupt otg sudat.
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.