Your task is to define a class named Device with:
Device
Device created
Device destroyed
The program will:
Example
Output:
Device created Device destroyed
Why this output?
Question Significance
Teaches both constructors and destructors, showing how C++ manages object lifecycles automatically.
Test Cases
Test Results
Input
Expected Output