...

/

Exercise: Simulating a Device Controls Hierarchy

Exercise: Simulating a Device Controls Hierarchy

Refine your Kotlin proficiency by developing a simulation of device controls with open and subclassed controls.

We'll cover the following...

Problem statement

Implement the following classes and methods to represent a hierarchy of device controls:

  1. Create an open class called DeviceControl with primary constructor properties id and isEnabled.

  2. Implement the enable and ...