We have already defined a class Device with:
Device
id
Your task is to:
main()
101
Device ID: 101
Example
Output:
Why this output?
The program assigns 101 to the id variable inside the object and then prints it.
Question Significance
This is the most basic usage of a class: declaring an object and printing one of its variables.
Test Cases
Test Results
Input
Expected Output