#include <iostream> using namespace std; class Sensor { public: Sensor(int v) { id = v; std::cout << "Sensor " << id << " initialized" << std::endl; } private: int id; }; int main() { Sensor s(101); return 0; }
Test Cases
Test Results
Input
Expected Output
Sensor 101 initialized