static void Main(string[] args) { var radio = new Radio(); RemoteControl remoteControl = new BasicRemoteControl(radio, "Radio"); remoteControl.Device.SetPower(false); var volume = remoteControl.ToggleVolume(12, "-"); Console.WriteLine($"[{remoteControl.DeviceName}] - Status do dispositivo - {remoteControl.Device.GetPower()}"); Console.WriteLine($"[{remoteControl.DeviceName}] - Volume que esta o dispositivo - {volume}"); var tv = new TV(); var remoteTouchControl = new TouchControl(tv, "TV"); remoteTouchControl.Device.SetPower(true); var volumeTV = remoteTouchControl.ToggleVolume(12, "+"); Console.WriteLine($"[{remoteTouchControl.DeviceName}] - Status do dispositivo - {remoteTouchControl.Device.GetPower()}"); Console.WriteLine($"[{remoteTouchControl.DeviceName}] - Volume que esta o dispositivo - {volumeTV}"); }