Q14
Single choice
Refer to the exhibit.

An engineer needs to provide code that meets these requirements:
1. defines the network device object
2. enables differentiation between device types such as switches and routers
3. implements a method that appends a dictionary containing the networking device property values into the respective devices list
4. upholds single-responsibility and dependency-inversion principles
Which code snippet meets these requirements?

