#include <iostream>
using namespace std;

class Sensor {
public:
   // Constructor taking int id and printing message
      Sensor(int id) {
            cout << "Sensor " << id << " initialized";
               }
               };

               int main() {
                  Sensor s(101);
                     return 0;
                     }
Upvote
Downvote
Loading...

Input

Expected Output

Sensor 101 initialized