#include <iostream> using namespace std; class Device { public: int id; Device(int value) { this->id = value; cout << "Device ID: " << this->id; } }; int main() { // your code here: declare Device object, assign id, and print it Device(101); return 0; }
Test Cases
Test Results
Input
Expected Output
Device ID: 101