#include <iostream> using namespace std; class LED { public: // your code here: implement turnOn() to print "LED ON" void turnOn(); void turnOff(); // your code here: implement turnOff() to print "LED OFF" }; void LED::turnOn(){ cout << "LED ON" << endl; } void LED::turnOff(){ cout << "LED OFF" << endl; } int main() { LED led; led.turnOn(); led.turnOff(); return 0; }
Test Cases
Test Results
Input
Expected Output
LED ON LED OFF