Replaced incompatible inheritance model.
Implemented missing virtual methods for device class.