Your task is to define a class named Sensor with:
Sensor
Sensor <id> initialized
The program will:
Example
Output:
Sensor 101 initialized
Why this output?
When the object is created, the constructor prints the initialization message.
Question Significance
Introduces constructors — special functions that run automatically when an object is created.
Test Cases
Test Results
Input
Expected Output