Interfces in config class

can we keep interfaces in config class? If yes how can I get those interfaces in driver and monitor? give an example.

In reply to sh88:

A virtual interface variable can hold a handle to an actual interface instance, and that variable can be a member of a class.

https://verificationacademy.com/cookbook/configuration