class SmartDevice(val name: String, val category: String) { var deviceStatus = "online" fun turnOn(){ println("Smart device is turned on.") } fun turnOff(){ println("Smart device is turned off.") } } fun main() { val smartTvDevice = SmartDevice(name = "Android TV", category = "Entertainment") println("Device name is: ${smartTvDevice.name}") smartTvDevice.turnOn() smartTvDevice.turnOff() }