How to initiate the factory in magento to access via the object?

Hi Dmitry,
thanks for responding so briefly

the one question i still have, how to initiate the factory in magento to access via the object. i still struggle between how to use factorys and interfaces. i heared it is bad practice to use the objectManager. so i do not really know ho to inject or initialize the factory

many thanks for any advice

cheers Ludwig

I use just \Magento\Framework\App\ObjectManager::getInstance()

E.g:

Hi Dmitry,

thanks for this advise. i will try it. but meanwhile many thanks for your help

cheers Ludwig