What is <type> and <virtualType>? (duplicate)

I really confused about type and virtualType in magento 2 what is purpose of it and how its use proper manner ? can u pls.

What is a «virtualType» and how to use it