All submissions
#include <iostream>
using namespace std;

class LED {
public:
   void turnOff(){
      cout<<"LED OFF"<<endl;
   }  
   void turnOn(){
      cout<<"LED ON"<<endl;
   }
   // your code here: implement turnOn() to print "LED ON"
   // your code here: implement turnOff() to print "LED OFF"
};

int main() {
   LED led;
   led.turnOn();
   led.turnOff();
   return 0;
}
Loading...

Input

Expected Output

LED ON LED OFF