UST interview question

Oops concepts, its types with example