34. Device Counter

 The program creates three Device objects and then prints the total number of devices created.

Your task is to declare the variable count inside the Device class such that:

  • It increments every time a new object is created.
  • It keeps the same value across all objects (does not reset for each object).
     

Example
 Output:

Total devices created: 3
Loading...

Input

Expected Output

Total devices created: 3