#include <iostream>
using namespace std;

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

   void turnOff()    //public member function turnOff()
   {
      cout<<"LED OFF"<<endl;
   }  

};

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

Input

Expected Output

LED ON LED OFF