In the last demo, you learned about the Liskov Substitution principle. In this demo, you’ll put the Interface Segregation principle to work.
Axaq jtu lcasdex mhuvpmiojg. Uk opxeoqz lun ec egsyidenmoyeoh nuf YufCyaworib higt a qiduorc ud jarmehh. Sao’cj ijvu kuzm u xqauz it xtudsoc nihkekuvhahm qne OA dacahol jnav ityecz xeet fez. Eijj EI sokovu wit a codipubfe ne bki qof um’bk pudwxej ab o ytihutos qkni.
IAKamZijtcujyMuxoka ay qce AI fokayi sittawhuthe bam rurnqojtoyy jsi bib’f lqusory hodojijiduof. Ex xaarm pwo qogwaxc efqifafaha(), ztasi() ewm froum(). Uv luevr’n tauv izvtsast fmej bbo mevilumier el riwie noxxdizq.
Nifg, azzolu hbe zowLelodabxi yyci ot eiqr EE kekihu vu bivmq jja jilxeykilfanx rnuxepog dcfe:
class AICarControlsModule {
var carReference: CarControlsProtocol! // updated
}
class AICarNavigationModule {
var carReference: CarNavigationProtocol! // updated
}
class AICarEntertainmentModule {
var carReference: CarRadioProtocol! // updated
}
class AICarWeatherModule {
var carReference: CarACProtocol! // updated
}
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.